Results 1 to 13 of 13

Thread: QWizard - mandatory fields

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts

    Default Re: QWizard - mandatory fields

    You could try passing Qt::Window as second parameter to QWizard constructor if you want to make it appear as an ordinary window instead of a dialog.
    J-P Nurmi

  2. #2
    Join Date
    Feb 2008
    Posts
    43
    Thanks
    14

    Question Re: QWizard - mandatory fields

    sorry, how do I do that, in the header file?

  3. #3
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts

    Default Re: QWizard - mandatory fields

    Qt Code:
    1. QWizard wizard(parent, Qt::Window); // <---
    2. wizard.addPage(...);
    3. wizard.addPage(...);
    4. ...
    5. wizard.exec();
    To copy to clipboard, switch view to plain text mode 
    J-P Nurmi

  4. #4
    Join Date
    Feb 2008
    Posts
    43
    Thanks
    14

    Question Re: QWizard - mandatory fields

    I did it. The "maximize" button appeared but when I press it it streaches out the window to the maximum only vertically, the horizontal size still stays the same

  5. #5
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts

    Default Re: QWizard - mandatory fields

    Did you set any maximum sizes (widths) and/or did you adjust any size policies?

    Edit: Oh, and which platform are you working on? Could you edit your user profile to indicate that? Thanks.
    J-P Nurmi

  6. #6
    Join Date
    Feb 2008
    Posts
    43
    Thanks
    14

    Question Re: QWizard - mandatory fields

    not for the whole form. I have some size policies for the widgets and spacers inside the form so they streaches out correctly but no size policies for the whole form.
    I did the pages in QT Designer, then converted them by uic and inserted the result into my program. In the Designer in the Form Preview I have the maximize button and it work fine, but when I insert it to the overall program I get that trouble.
    I work on Windows for now.

  7. #7
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts

    Default Re: QWizard - mandatory fields

    I can assure you that it works with minimal test wizard. Did you subclass QWizard? If so, I'd suggest trying out with a plain QWizard to see if your subclass does something faulty. Furthermore, if it doesn't resolve the problem, try leaving out page by page to see which page could cause it.
    J-P Nurmi

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

    slava (12th February 2008)

  9. #8
    Join Date
    Feb 2008
    Posts
    43
    Thanks
    14

    Thumbs up Re: QWizard - mandatory fields

    I found it! It was the pictures at the top and at the left which was set by setPixMap, they were limiting the sizes of the window, once I took those off the window got able to be any size.
    thank you!

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.