Results 1 to 2 of 2

Thread: Widget overlap

  1. #1
    Join Date
    Oct 2007
    Location
    Lake Forest, CA, USA
    Posts
    132
    Thanks
    10
    Thanked 27 Times in 22 Posts
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android

    Default Widget overlap

    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:

    But how can I place those widgets behind QTabWidget?

    Thanks.
    Oleg Shparber

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: Widget overlap

    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.

  3. The following user says thank you to Lykurg for this useful post:

    Oleg (30th March 2010)

Similar Threads

  1. Replies: 7
    Last Post: 14th January 2010, 08:47
  2. Replies: 4
    Last Post: 3rd October 2009, 08:19
  3. Replies: 4
    Last Post: 3rd March 2008, 22:15
  4. Replies: 1
    Last Post: 5th November 2006, 23:50
  5. Replies: 9
    Last Post: 8th May 2006, 14:21

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.