Results 1 to 4 of 4

Thread: Hiding QTabBar on QTabWidget

  1. #1
    Join Date
    Dec 2008
    Posts
    32
    Thanks
    17
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Hiding QTabBar on QTabWidget

    I want to add an option to hide QTabBar if there are only one tab at QTabWidget but I couldn't find any method like setVisible() neither in QTabBar class nor in QTabWidget class. Could you please help me to find out how to do this? Thanks!

  2. #2
    Join Date
    Dec 2008
    Posts
    32
    Thanks
    17
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Hiding QTabBar on QTabWidget

    I need to subclass from QTabWidget and use QTabBar()->hide/show()... Thanks to Wysota, answered this question in another thread. Delete this topic please...

  3. #3
    Join Date
    Jun 2007
    Location
    India
    Posts
    1,042
    Thanks
    8
    Thanked 133 Times in 128 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Hiding QTabBar on QTabWidget

    its better if you also post a link to that topic

  4. #4
    Join Date
    Dec 2008
    Posts
    32
    Thanks
    17
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Hiding QTabBar on QTabWidget


Similar Threads

  1. Hiding a tab in QTabBar widget
    By erik in forum Qt Programming
    Replies: 9
    Last Post: 12th February 2017, 12:29
  2. Using QTabBar as QTabWidget replacement
    By invictus in forum Qt Programming
    Replies: 0
    Last Post: 16th August 2008, 01:57
  3. Problems with CSS for QTabBar and QTabWidget
    By visor_ua in forum Qt Programming
    Replies: 1
    Last Post: 25th July 2008, 08:38
  4. Hiding the QTabBar of a QTabWidget
    By elcuco in forum Qt Programming
    Replies: 4
    Last Post: 26th March 2007, 14:59
  5. Customize QTabBar or QTabWidget
    By gtthang in forum Qt Programming
    Replies: 3
    Last Post: 15th February 2006, 08:39

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.