Hi All,
I have a question about stacked widget.I have created a widget with Qt designer and I added it on stacked widget.But I wonder how can i check which page is opened on stacked widget.May be my explanation is not enough i added some codes here please look at it.
This part i decleared zemin and i add to stackedwidget.
cpp code
zemin=new cEkrani;
zemin->loadMod(false);
ui.stackedWidget->addWidget(zemin);
ui.stackedWidget->setCurrentWidget(zemin);
zemin=new cEkrani;
zemin->loadMod(false);
ui.stackedWidget->addWidget(zemin);
ui.stackedWidget->setCurrentWidget(zemin);
To copy to clipboard, switch view to plain text mode
This part i want to check is zemin page opened or not but i couldn't do this
if(ui.stackedWidget->currentWidget()==zemin)
{
....
.....
}
if(ui.stackedWidget->currentWidget()==zemin)
{
....
.....
}
To copy to clipboard, switch view to plain text mode
How can i do this control with the name of widget?
Bookmarks