Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-99488

Add method to go to a specific QWizard page number

    XMLWordPrintable

    Details

    • Type: Suggestion
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Fixed
    • Affects Version/s: 6.3.0 Feature Freeze
    • Fix Version/s: 6.4.0 Beta1
    • Labels:
      None
    • Platform/s:
      All
    • Commits:
      2140edaaab (qt/qtbase/dev) 2140edaaab (qt/tqtc-qtbase/dev)

      Description

      Hello! 

      I want to create a button group navigation between QWizard pages.

       

       

      The current solution is to analyze pageid, get the current page number, and called 

      QWizard::back()

      or 

      QWizard::next

       methods to go to my page, but it would be better to have some method like these, which do it automatically

       

      void StartupWizard::OnPageNumMove(int pageIdToMove)
      { 
        if(currentId()==pageIdToMove) 
             return;  
        else 
        { 
          if(currentId()<pageIdToMove)
            while (pageIdToMove!=currentId()) 
             this->next();  
           else 
             while (pageIdToMove!=currentId())
               this->back(); 
        } 
      }

       

        Attachments

        For Gerrit Dashboard: QTBUG-99488
        # Subject Branch Project Status CR V

          Activity

            People

            Assignee:
            axelspoerl Axel Spoerl
            Reporter:
            andr1312e Andrew Pilikin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 day
                1d

                  Gerrit Reviews

                  There are no open Gerrit changes