Results 1 to 3 of 3

Thread: multiple stackedWidgets

  1. #1

    Default multiple stackedWidgets

    Hi,

    until now I had a stackedWidget which shows a plot on each "page". But now I have several series of plots.
    So I would like to create some kind of 2 dimensional stackwidget, where I can choose the series first from a compobox and then click (like i do it now for only one series) through the plots of the series choosen due to the combobox.

    At the moment my only solution is to put alle series on one stackedwidget and remember the index where a new series starts. But if there is one I would prefere a more convenient solution.

    Regards scr

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: multiple stackedWidgets

    Maybe I don't understand your problem, but since QStackedWidget is a normal widget you can put one into an other. E.g.:
    Qt Code:
    1.  
    2. QWidget *subplot_1_1 = new QWidget;
    3. QWidget *subplot_1_2 = new QWidget;
    4. sub1->addWidget(subplot_1_1);
    5. sub1->addWidget(subplot_1_2);
    6.  
    7. QWidget *subplot_2_1 = new QWidget;
    8. QWidget *subplot_2_2 = new QWidget;
    9. sub2->addWidget(subplot_2_1);
    10. sub2->addWidget(subplot_2_2);
    11.  
    12. gloabl->addWidget(sub1);
    13. gloabl->addWidget(sub2);
    To copy to clipboard, switch view to plain text mode 

    All that can be created dynamically of course...

  3. #3

    Default Re: multiple stackedWidgets

    Thanks a lot! - problem solved! I had another mistake - so that didnt work when I tried first!

Similar Threads

  1. Qt Multiple Ui files.....
    By Rajeshsan in forum Qt Programming
    Replies: 4
    Last Post: 19th January 2010, 04:14
  2. Multiple displays on X11
    By alisami in forum Qt Programming
    Replies: 1
    Last Post: 25th September 2009, 17:25
  3. multiple sort
    By baray98 in forum Qt Programming
    Replies: 3
    Last Post: 25th August 2009, 08:43
  4. Multiple windows
    By bgturk in forum Qt Programming
    Replies: 0
    Last Post: 23rd April 2009, 10:03
  5. Replies: 0
    Last Post: 21st December 2006, 11:48

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.