Well at first i created in my project a new Qt Designer Form Class which is a widget called widget2 that created an new .ui/.cpp/.h files then i wrote this code in my mainwindow wich contain a QStackedWidget
but i doesn't do the jobQt Code:
ui->stackedWidget->setCurrentIndex(0); Widget2 * newWidget2 = new Widget2; ui->stackedWidget->addWidget( newWidget2 );To copy to clipboard, switch view to plain text mode![]()
![]()
Bookmarks