Results 1 to 4 of 4

Thread: QWizard and nextId() question

  1. #1
    Join Date
    May 2009
    Posts
    2
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default QWizard and nextId() question

    Hi All,

    I'm using QWizard class for showing the dialogs sequence and it works just fine.
    But now I have request to perform some non-interactive silent actions between dialogs. Initially I planned to use nextId() method for this. I already use this method for controlling the dialog sequence so I thought that running some actions before returning next dialog ID is ok. But then I realize that nextId() method called not only when customer press "next" but at least several times more. This is not good since actions should be performed only once.
    Do anyone know the solution for such task? I'm also thinking about validateCurrentPage() method to this but documentation do not recommend to re-implement this method.

    thanks 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: QWizard and nextId() question

    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
    May 2008
    Posts
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QWizard and nextId() question

    Hello,

    I just came across this problem, and found that QWizard::validateCurrentPage() perfectly fits this need.
    In my case, I needed to perform a time-spending operation, possibly canceled by the user.

    Best regards

  4. #4
    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: QWizard and nextId() question

    Quote Originally Posted by Olaf69 View Post
    Hello,

    I just came across this problem, and found that QWizard::validateCurrentPage() perfectly fits this need.
    In my case, I needed to perform a time-spending operation, possibly canceled by the user.

    Best regards
    It depends whether you want to do the validation in the "old" or "new" page.
    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.


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.