Qt5. I have the main class class StartupWizard : public QWizard
and QWizardPages
like these: class IntroPage : public QWizardPage
It begins with set pages:
setPage(Page_Intro, m_introPage);
setPage(Page_UserData, m_fcsPage);
for (int i = 0; i < m_rolesPages.size(); i++) {
setPage(i + 2, m_rolesPages.at(i));
}
setStartId(Page_Intro);
setOption(QWizard::HaveHelpButton);
and method int nextId() const override;
is overrided in every page
All works correct, but when I want to insert one general widget, button, for example, that would be displayed in every QWizardPage
i get:
Initialization of this button is:
QVBoxLayout m_lay;
m_lay.addWidget(m_button);
setLayout(&m_lay);
It could be no button, I show it as an example...
setSideWidget
is shown on the left side of the wizard, but I heed on top.So what I want to get:
The question is, how I can make a widget that would be displayed on all pages? In QWidget
i use layouts
and insertWidget
, but I don't see it here...
Of course, I can send widget pointers to all pages, but have I another way to fix it?