Results 1 to 3 of 3

Thread: hide QTabWidget?

  1. #1
    Join Date
    Oct 2007
    Location
    Italy
    Posts
    172
    Thanks
    39
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default hide QTabWidget?

    Hello, is there a way to hide a QTabWidget?
    I tried with setVisible(false) but it doesn't work and on doc page

    http://doc.trolltech.com/4.2/qtabwidget.html

    i did not find any suggestion.
    thx

  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: hide QTabWidget?

    What is a "doc page"? QTabWidget is a QWidget and every QWidget can be hidden like you suggest. But it will hide entire tab widget, not just an individual page. You will have to temporarily removeTab() if you want to hide certain tab.
    J-P Nurmi

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

    mattia (20th February 2008)

  4. #3
    Join Date
    Oct 2007
    Location
    Italy
    Posts
    172
    Thanks
    39
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: hide QTabWidget?

    Quote Originally Posted by jpn View Post
    What is a "doc page"?
    I meant the QTabWidget documentation page.

Similar Threads

  1. Hide the Tab-Button
    By sabeesh in forum Qt Programming
    Replies: 2
    Last Post: 29th October 2007, 07:20
  2. QToolBox + resize + hide
    By eleanor in forum Newbie
    Replies: 14
    Last Post: 24th October 2007, 19:41
  3. model/view, can't hide row/col
    By grellsworth in forum Qt Programming
    Replies: 7
    Last Post: 17th September 2007, 14:21
  4. Adding QGroupBox to QTabWidget
    By mclark in forum Newbie
    Replies: 2
    Last Post: 17th January 2007, 16:27
  5. QTabWidget Placement and Display
    By mclark in forum Newbie
    Replies: 1
    Last Post: 16th January 2007, 20:34

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.