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

Add method to go to a specific QWizard page number

    XMLWordPrintable

Details

    • All
    • 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

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            axelspoerl Axel Spoerl
            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