PDA

View Full Version : Widget overlap



Oleg
29th March 2010, 19:23
I have a problem trying to put some widgets behind QTabWidget's tab bar. Let me explain with images.
So, I need to have logo image (leftside) and help-link (rightside) to be on the same baseline as tabs:
http://img707.imageshack.us/img707/8071/003sk.png
But how can I place those widgets behind QTabWidget?

Thanks.

Lykurg
29th March 2010, 19:53
It's not nice, but you can say that the first tab should have e.g. 250px left-margin, then position a QLabel with a pixmap absolute at 0,0 and you have the result.
A better way would be to subclass QTabWidget and hook the paint event for drawing the picture.