Results 1 to 4 of 4

Thread: QToolBox pages visibility

  1. #1
    Join Date
    Jul 2010
    Posts
    10
    Thanks
    4
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default QToolBox pages visibility

    Hey guys,

    I have a qtoolbox that initially has only three pages. After some time the user decides to add more pages to it. The result is that the inner widgets from the pages lose visibility.

    before.pngafter.png

    Any thoughts?

  2. #2
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: QToolBox pages visibility

    I know this isn't going to help you but in such cases it's always a good idea to rethink what you want to do or are doing.

    If a certain widget reaches its limits, then maybe you should try another approach.

    A popular approach is to use a listwidget and a widget assigned to each item.
    On the left you have a listwidget wich contains all the different pages (as a list).
    On the right you have a widget which shows the settings of each page.

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

    creep33 (8th September 2010)

  4. #3
    Join Date
    Jul 2010
    Posts
    10
    Thanks
    4
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QToolBox pages visibility

    Quote Originally Posted by tbscope View Post
    I know this isn't going to help you but in such cases it's always a good idea to rethink what you want to do or are doing.

    If a certain widget reaches its limits, then maybe you should try another approach.

    A popular approach is to use a listwidget and a widget assigned to each item.
    On the left you have a listwidget wich contains all the different pages (as a list).
    On the right you have a widget which shows the settings of each page.
    that is a good idea. However it will take me some time to do it. I am pretty sure there must be a way to keep a widget always visible. Any other thoughts?

  5. #4
    Join Date
    Jul 2010
    Posts
    10
    Thanks
    4
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QToolBox pages visibility

    I added the list as suggested. It worked fine. Thanks again.

Similar Threads

  1. Visibility with styleSheets
    By jano_alex_es in forum Newbie
    Replies: 2
    Last Post: 21st January 2010, 11:14
  2. Visibility of QDialog
    By elizabeth.h1 in forum Qt Programming
    Replies: 7
    Last Post: 15th October 2009, 17:40
  3. Item Delegate Visibility
    By raneeshambat in forum Newbie
    Replies: 1
    Last Post: 18th September 2009, 20:41
  4. QTabWidget tab visibility
    By dcss-design in forum Qt Programming
    Replies: 2
    Last Post: 30th January 2007, 23:24
  5. QDataTable not visibility?
    By Dmitry in forum Newbie
    Replies: 1
    Last Post: 6th April 2006, 20:35

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
  •  
Qt is a trademark of The Qt Company.