Results 1 to 5 of 5

Thread: complexe wizard with designer

  1. #1
    Join Date
    Jan 2006
    Posts
    46
    Thanks
    13
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default complexe wizard with designer

    Hey all,
    I would like to do a complex wizard such as the one that is given with qt4 assistant. The difference is that I want to do each page with designer. The tutorial exemple uses set Layout to change the content of each page. What would be the equivalent of setLayout if I design a dialog for each page with designer? such as page1.ui and ui_page1.h page2.ui and ui_page2.h etc...

    thanx in advance

    Pat

  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: complexe wizard with designer

    IMO you should use a QStackedWidget and add all "dialogs" as pages of the widget. The rest of the layout (buttons, titles, image) can be done only once for the whole wizard.

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

    patcito (28th June 2006)

  4. #3
    Join Date
    Jan 2006
    Posts
    46
    Thanks
    13
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: complexe wizard with designer

    but with qstackwidget, the user can change page as he wants. What if I want to oblige the user to go to a certain page depending on the option he choose on a page?

  5. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: complexe wizard with designer

    Quote Originally Posted by patcito
    but with qstackwidget, the user can change page as he wants.
    No, he can't. Qt Designer shows a bit different widget in the preview.

  6. The following user says thank you to jacek for this useful post:

    patcito (28th June 2006)

  7. #5
    Join Date
    Feb 2006
    Location
    Boulder, Colorado, USA
    Posts
    63
    Thanked 8 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: complexe wizard with designer

    I think the stack widget is the best way to go in your case, but when I want to embed a ui file in something I create a QWidget in designer. Then you can use that Qwidget inside a Qframe or similar container in some other ui form.

  8. The following user says thank you to jrideout for this useful post:

    patcito (28th June 2006)

Similar Threads

  1. Adding slots in Designer
    By jamos in forum Qt Tools
    Replies: 5
    Last Post: 18th May 2006, 23:28
  2. Arthur Plugins demos and designer
    By antonio.r.tome in forum Installation and Deployment
    Replies: 4
    Last Post: 21st March 2006, 14:01
  3. Replies: 4
    Last Post: 1st March 2006, 23:11
  4. Replies: 2
    Last Post: 14th February 2006, 15:28
  5. How to create custom slot in Qt Designer 4.1?
    By jamadagni in forum Qt Tools
    Replies: 31
    Last Post: 18th January 2006, 20:46

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.