Hello, All !
I have to process 4 different dialogs in QStackedWidget.
I do this
wsForm = new WsPropertiesForm (0, false, 0);
QSize cwSize
(wsForm
->maximumSize
());
rForm = new RasterPropertiesForm (false, 0);
dForm = new DocumentPropertiesForm (0, false, 0);
lForm = new LayerPropertiesForm (0, false, 0);
...
int wsIndex = this->ResultsStackedW->addWidget (wsForm);
int rIndex = this->ResultsStackedW->addWidget (rForm);
int dIndex = this->ResultsStackedW->addWidget (dForm);
int lIndex = this->ResultsStackedW->addWidget (lForm);
this->ResultsStackedW->setCurrentIndex (0);
...
wsForm = new WsPropertiesForm (0, false, 0);
QSize cwSize (wsForm->maximumSize ());
rForm = new RasterPropertiesForm (false, 0);
dForm = new DocumentPropertiesForm (0, false, 0);
lForm = new LayerPropertiesForm (0, false, 0);
...
int wsIndex = this->ResultsStackedW->addWidget (wsForm);
int rIndex = this->ResultsStackedW->addWidget (rForm);
int dIndex = this->ResultsStackedW->addWidget (dForm);
int lIndex = this->ResultsStackedW->addWidget (lForm);
this->ResultsStackedW->setCurrentIndex (0);
...
To copy to clipboard, switch view to plain text mode
In form constructor. When this form is shown, I see all these widgets simultaneously. Where is error ? I have to see these forms code ?
Bookmarks