Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
How to add QToolBar to QWizard
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
poorBob last edited by
Hello and welcome to the Qt-project forums!
Maybe You should try to derive from QWizardPage and than add the QToolBar?
With best regards
Hi and welcome to devnet,
A QToolBar in a QWizard sounds strange, can you tell us what you want to achieve ?
[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]
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
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.
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”
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
Thanks for your reply
now i solved my problem