Results 1 to 4 of 4

Thread: Show and hide Tab page

  1. #1
    Join Date
    Jan 2010
    Posts
    22
    Thanks
    5

    Smile Show and hide Tab page

    Hi,

    I know that we can hide a page of a Tab by

    Qt Code:
    1. int page_index = 0;
    2. ui->myTab->removeTab(page_index);
    To copy to clipboard, switch view to plain text mode 

    but how can I show this page again. There seems no such kind of function in Qt 4.7 Tab

    Qt Code:
    1. int page_index = 0;
    2. ui->myTab->showPage(page_index);
    To copy to clipboard, switch view to plain text mode 

    Thank you in advance

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Show and hide Tab page

    There is addTab()
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Show and hide Tab page

    Quote Originally Posted by fulin View Post
    I know that we can hide a page of a Tab by
    There's a difference between hiding something and removing it. As wysota says, there is addTab() (or insertTab()) but you will need to keep a pointer to the removed tab somewhere (and ensure its destruction if it is not in the tab widget).

  4. #4
    Join Date
    Jan 2010
    Posts
    22
    Thanks
    5

    Red face Re: Show and hide Tab page

    Now I got it.

    Thank you both!

Similar Threads

  1. Hide/Show problem
    By premroxx in forum Newbie
    Replies: 1
    Last Post: 9th September 2011, 15:33
  2. how to show an app if it manually hide
    By jthacker in forum Qt Programming
    Replies: 1
    Last Post: 26th March 2010, 13:02
  3. how to show and hide frames?
    By rambo83 in forum Qt Programming
    Replies: 2
    Last Post: 6th January 2010, 09:53
  4. Hide and Show QMenu
    By febil in forum Qt Programming
    Replies: 3
    Last Post: 25th March 2009, 09:31
  5. hide from taskbar but show to ALT-TAB
    By musikit in forum Qt Programming
    Replies: 0
    Last Post: 15th August 2008, 16:14

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.