简体   繁体   中英

Change MainWindow content on QT

I'm newbie in QT. I'm following some videos and decided to do something by myself.

The idea is that the first screen asks for the user to put the password, if it matches I would like to change the content of the same window to something different.

I know how to create a new window but I can't change the current one. How can I do that?

A QWizard is probably one of the most suited classes if you intend to change your window contents as a sequence of pages ( QWizardPage s)

A second famous alternative: QStackedWidget which displays only one widget at a time in a stack fashion.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM