当前位置:网站首页>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
边栏推荐
- Tita 绩效宝:如何为年中考核做准备?
- 33: Chapter 3: develop pass service: 16: use redis to cache user information; (to reduce the pressure on the database)
- WR | Jufeng group of West Lake University revealed the impact of microplastics pollution on the flora and denitrification function of constructed wetlands
- C#(Winform) 当前线程不在单线程单元中,因此无法实例化 ActiveX 控件
- [binary tree] insufficient nodes on the root to leaf path
- Cartoon: how to multiply large integers? (I) revised version
- Winedt common shortcut key modify shortcut key latex compile button
- 忽米沄析:工业互联网标识解析与企业信息系统的融合应用
- Compter le temps d'exécution du programme PHP et définir le temps d'exécution maximum de PHP
- 【二叉树】根到叶路径上的不足节点
猜你喜欢
统计php程序运行时间及设置PHP最长运行时间
Seven Devops practices to improve application performance
十个顶级自动化和编排工具
基于Redis实现延时队列的优化方案小结
ICML 2022 | meta proposes a robust multi-objective Bayesian optimization method to effectively deal with input noise
一文了解MySQL事务隔离级别
机器学习01:绪论
33:第三章:开发通行证服务:16:使用Redis缓存用户信息;(以减轻数据库的压力)
IDEA 项目启动报错 Shorten the command line via JAR manifest or via a classpath file and rerun.
机器学习02:模型评估
随机推荐
Clickhouse (03) how to install and deploy Clickhouse
7 pratiques devops pour améliorer la performance des applications
一口气读懂 IT发展史
To solve the problem of "double click PDF file, pop up", please install Evernote program
WebApp开发-Google官方教程
Summary of optimization scheme for implementing delay queue based on redis
SQL删除重复数据的实例教程
C#实现水晶报表绑定数据并实现打印3-二维码条形码
What are the precautions for MySQL group by
MySQL之知识点(七)
普通程序员看代码,顶级程序员看趋势
Cartoon: looking for the k-th element of an unordered array (Revised)
漏洞复现----48、Airflow dag中的命令注入(CVE-2020-11978)
Count the running time of PHP program and set the maximum running time of PHP
Is it safe for China Galaxy Securities to open an account? How long can I buy stocks after opening an account
Server configuration jupyter environment
使用QT设计师界面类创建2个界面,通过按键从界面1切换到界面2
力扣解法汇总729-我的日程安排表 I
About JSON parsing function JSON in MySQL_ EXTRACT
Use of ThinkPHP template