Results 1 to 2 of 2

Thread: QTabWidget: corner widget is not shown

  1. #1
    Join Date
    Feb 2008
    Posts
    12

    Default QTabWidget: corner widget is not shown

    Hi,
    I have a rather weird problem. I start my application with an empty QTabWidget. However, corner widgets to the top of the tab widget aren't shown! Only when the tab widget has tabs they appear. This is quite bad, though, since one of these corner widgets is a button for creating new tabs.

    Anybody knows how to solve this? Is there a way to force a tab widget to show the corner widgets, even if it has no tabs?

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: QTabWidget: corner widget is not shown

    Try good old [WIKI]proxy style[/WIKI] approach and make QStyle::subElementRect(QStyle::SE_TabWidgetTabBar) return something even when the tab bar is empty.
    J-P Nurmi

Similar Threads

  1. Tricky problem with ARGB widget / UpdateLayeredWindow
    By nooky59 in forum Qt Programming
    Replies: 3
    Last Post: 21st February 2008, 10:35
  2. Force focus to a QTabWidget page's widget
    By thomaspu in forum Qt Programming
    Replies: 1
    Last Post: 2nd January 2008, 06:54
  3. QTabWidget Placement and Display
    By mclark in forum Newbie
    Replies: 1
    Last Post: 16th January 2007, 20:34
  4. Corner widget in QTabWidget doesn't show up
    By ePharaoh in forum Qt Programming
    Replies: 2
    Last Post: 6th April 2006, 17:02
  5. [qt4] QScrollArea corner widget?
    By sertrem in forum Qt Programming
    Replies: 2
    Last Post: 12th January 2006, 21:42

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.