当前位置:网站首页>Use QT designer interface class to create two interfaces, and switch from interface 1 to interface 2 by pressing the key
Use QT designer interface class to create two interfaces, and switch from interface 1 to interface 2 by pressing the key
2022-07-05 17:38:00 【Snow without fragrance】
Ideas : Button click function hide window 1 meanwhile emit Broadcast click signal ( Add by yourself ),main Use connect, window 1 Send a click signal , Run window 2show Show function
Step one :Add new——QT—— Designer interface class
Step two : Window one
signals:
void Show_EnterBtn();// The login button is clicked
private slots:
void on_EnterBtn_clicked();// Login button corresponding function : Close the login screen , Broadcast login button click signal
void Enter::on_EnterBtn_clicked()
{
this->hide();// Hidden window 1
emit Show_EnterBtn();// Broadcast button click signal
}
Step three : Window two
private slots:
void Show_FuncSelect();// Display window 2
Step four :main function
QObject::connect(&mEnter,SIGNAL(Show_EnterBtn()),&mFuncSelect,SLOT(Show_FuncSelect()));// Click button , close window 1, Display window 2
边栏推荐
- Webapp development - Google official tutorial
- Knowing that his daughter was molested, the 35 year old man beat the other party to minor injury level 2, and the court decided not to sue
- mongodb(快速上手)(一)
- 企业数字化发展中的六个安全陋习,每一个都很危险!
- 得知女儿被猥亵,35岁男子将对方打至轻伤二级,法院作出不起诉决定
- BigDecimal除法的精度问题
- C (WinForm) the current thread is not in a single threaded unit, so ActiveX controls cannot be instantiated
- 7. Scala class
- The comprehensive competitiveness of Huawei cloud native containers ranks first in China!
- Force deduction solution summary 729- my schedule I
猜你喜欢
WR | Jufeng group of West Lake University revealed the impact of microplastics pollution on the flora and denitrification function of constructed wetlands
云主机oracle异常恢复----惜分飞
Complete solution instance of Oracle shrink table space
MySQL queries the latest qualified data rows
winedt常用快捷键 修改快捷键latex编译按钮
統計php程序運行時間及設置PHP最長運行時間
MySQL之知识点(七)
哈趣K1和哈趣H1哪个性价比更高?谁更值得入手?
Vulnerability recurrence - 48. Command injection in airflow DAG (cve-2020-11978)
Server configuration jupyter environment
随机推荐
漫画:一道数学题引发的血案
C # realizes crystal report binding data and printing 3-qr code barcode
Q2 encryption market investment and financing report in 2022: gamefi becomes an investment keyword
一文了解Go语言中的函数与方法的用法
How MySQL uses JSON_ Extract() takes JSON value
Short the command line via jar manifest or via a classpath file and rerun
Database design in multi tenant mode
一口气读懂 IT发展史
WR | Jufeng group of West Lake University revealed the impact of microplastics pollution on the flora and denitrification function of constructed wetlands
goto Statement
Cartoon: looking for the k-th element of an unordered array (Revised)
CVPR 2022 best student paper: single image estimation object pose estimation in 3D space
2022 information system management engineer examination outline
【二叉树】根到叶路径上的不足节点
33:第三章:开发通行证服务:16:使用Redis缓存用户信息;(以减轻数据库的压力)
独立开发,不失为程序员的一条出路
Cmake tutorial step6 (add custom commands and generate files)
Disabling and enabling inspections pycharm
Cloud security daily 220705: the red hat PHP interpreter has found a vulnerability of executing arbitrary code, which needs to be upgraded as soon as possible
ICML 2022 | Meta提出鲁棒的多目标贝叶斯优化方法,有效应对输入噪声