Slofware
Posts: 11
Joined: Tue Jul 26, 2016 5:06 pm

Qt Creator draw lines in tab widget

Wed Aug 03, 2016 3:17 pm

Hello,

I am running python 3.4 with Qt Creator 5.
I can already draw some lines but that's all on the background.
Is there a way to always draw lines on the foreground or on a QTabWidget?

Thanks

scotty101
Posts: 3958
Joined: Fri Jun 08, 2012 6:03 pm

Re: Qt Creator draw lines in tab widget

Wed Aug 03, 2016 3:48 pm

I would guess that you need to create a widget inside the tab widget like QPainter to be able to draw lines

http://stackoverflow.com/questions/2467 ... -draw-line
Electronic and Computer Engineer
Pi Interests: Home Automation, IOT, Python and Tkinter

Slofware
Posts: 11
Joined: Tue Jul 26, 2016 5:06 pm

Re: Qt Creator draw lines in tab widget

Wed Aug 03, 2016 5:53 pm

So I need to make a paintevent for the QTabWidget.
How do I do that in python and how can I update it every second?

Return to “Graphics programming”