Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to add QToolBar to QWizard
Forum Updated to NodeBB v4.3 + New Features

How to add QToolBar to QWizard

Scheduled Pinned Locked Moved General and Desktop
8 Posts 3 Posters 1.7k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    pandu29
    wrote on last edited by
    #1

    I have been looking but i can not find a way to add qtoolbar in a qwizard

    iam very new to Qt

    Help would be appreciated

    1 Reply Last reply
    0
    • P Offline
      P Offline
      poorBob
      wrote on last edited by
      #2

      Hello and welcome to the Qt-project forums!

      Maybe You should try to derive from QWizardPage and than add the QToolBar?

      With best regards
      Robert

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi and welcome to devnet,

        A QToolBar in a QWizard sounds strange, can you tell us what you want to achieve ?

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        0
        • P Offline
          P Offline
          pandu29
          wrote on last edited by
          #4

          [quote author="SGaist" date="1388610911"]Hi and welcome to devnet,

          A QToolBar in a QWizard sounds strange, can you tell us what you want to achieve ?[/quote]

          Thanks....

          In my application qwizard has 8 qwizardpages. so my plan is to add a qtoolbar to qwizard which contains 8 qtoolbuttons (one for each page). if user clicks particular button, then qwizard goes to that page.

          eg:) suppose qwizard's current page is 2, if user clicks 6th button then it goes to 6th page

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            Then are you sure that QWizard is the right class for the job ? Normally navigating a QWizard is done step by step in a logical order (even going back and forth) using next/back

            What you want to do seems to break the concept of QWizard.

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            0
            • P Offline
              P Offline
              pandu29
              wrote on last edited by
              #6

              In my application user needs to perform actions step by step for each page for 1st time, later on wards he need not to perform actions for each page. For this reason I try add qtoolbar for going particular page (both directions)
              I want to provide an option like “go to any page from any page in qwizard”

              1 Reply Last reply
              0
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #7

                Then you should rather design that concept independently of the wizard. Use it only on the first run (setup wizard), then use another widget for the user to modify the parameters with e.g. a tab widget

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                1 Reply Last reply
                0
                • P Offline
                  P Offline
                  pandu29
                  wrote on last edited by
                  #8

                  Thanks for your reply

                  now i solved my problem

                  1 Reply Last reply
                  0

                  • Login

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Users
                  • Groups
                  • Search
                  • Get Qt Extensions
                  • Unsolved