Rooster1
19th December 2008, 12:40
hi all,
I've qt 4.4.0
On my QWizard I want to set a NOT MODAL QWizardPages, to take some values from qmainwindows behind the qwizardpage.
I cannot make this.
If I call cc.show() nothing is visualized, I must use cc.exec() but it creates a modal Dialog
I attach a piece of code
void MissionTree_Control::wizard_Show()
{
ClassWizard cc(m_parent);
// cc.exec();
cc.show();
std::cout<<";-)"<<std::endl;
}
ClassWizard::ClassWizard(QWidget *parent) : QWizard(parent)
{
addPage(new Intro_Page);
addPage(new GCS_Page);
setWindowTitle(tr("Mission definition"));
setWizardStyle(QWizard::ModernStyle);
}
Intro_Page::Intro_Page(QWidget *parent): QWizardPage(parent)
{
setWindowModality(Qt::WindowModal);
setTitle(tr("..."));
setPixmap(QWizard::WatermarkPixmap, QPixmap("..."));
...
}
GCS_Page::GCS_Page(QWidget *parent): QWizardPage(parent)
{
setWindowModality(Qt::NonModal);
setTitle(tr("..."));
}
I've qt 4.4.0
On my QWizard I want to set a NOT MODAL QWizardPages, to take some values from qmainwindows behind the qwizardpage.
I cannot make this.
If I call cc.show() nothing is visualized, I must use cc.exec() but it creates a modal Dialog
I attach a piece of code
void MissionTree_Control::wizard_Show()
{
ClassWizard cc(m_parent);
// cc.exec();
cc.show();
std::cout<<";-)"<<std::endl;
}
ClassWizard::ClassWizard(QWidget *parent) : QWizard(parent)
{
addPage(new Intro_Page);
addPage(new GCS_Page);
setWindowTitle(tr("Mission definition"));
setWizardStyle(QWizard::ModernStyle);
}
Intro_Page::Intro_Page(QWidget *parent): QWizardPage(parent)
{
setWindowModality(Qt::WindowModal);
setTitle(tr("..."));
setPixmap(QWizard::WatermarkPixmap, QPixmap("..."));
...
}
GCS_Page::GCS_Page(QWidget *parent): QWizardPage(parent)
{
setWindowModality(Qt::NonModal);
setTitle(tr("..."));
}