6 years ago (2014-12-25)  Algorithm language |   First to comment  68 
post score 0 times, average 0.0
[Slideup] Catalog

 Qt multi-window switching program

1.ui file layout

Qt multi-window switching program

2. Main program

Main.cpp


 

Main interface program: mainwindow.h

Mainwindow.cpp

   

Dialog1.cpp


  1.  

Dialog2.cpp is similar to Dialog1 Key points: this->close(); dialog2.show(); dialog2.exec(); this->show();  

By waiting for the dialog.exec() message, it is determined whether the main interface is echoed.

operation result:

Qt multi-window switching programQt multi-window switching program

  
 

The article was transferred from: http://www.2cto.com/kf/201203/124441.html!Unless otherwise specified, all articles in this site are original Baiyuan's Blog, please indicate the source from < a href="https://wangbaiyuan.cn/en/qt-multi-window-switches-2.html" title="Qt multi-window switching program">https://wangbaiyuan.cn/en/qt-multi-window-switches-2.html

Post comment

Style

No Comment

登录

Forget password?

您也可以使用第三方帐号快捷登录

切换登录

注册

TW