当前位置:网站首页>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
边栏推荐
- Mysql5.6 parsing JSON strings (supporting complex nested formats)
- Machine learning 01: Introduction
- 企业数字化发展中的六个安全陋习,每一个都很危险!
- Oracle Recovery Tools ----oracle数据库恢复利器
- Force deduction solution summary 729- my schedule I
- 请问下为啥有的表写sql能查到数据,但在数据地图里查不到啊,查表结构也搜不到
- Compter le temps d'exécution du programme PHP et définir le temps d'exécution maximum de PHP
- 十个顶级自动化和编排工具
- MYSQL group by 有哪些注意事项
- Database design in multi tenant mode
猜你喜欢
机器学习02:模型评估
MySQL之知识点(六)
Compter le temps d'exécution du programme PHP et définir le temps d'exécution maximum de PHP
Knowledge points of MySQL (7)
ICML 2022 | Meta propose une méthode robuste d'optimisation bayésienne Multi - objectifs pour faire face efficacement au bruit d'entrée
MYSQL group by 有哪些注意事项
Rider set the highlighted side of the selected word, remove the warning and suggest highlighting
thinkphp3.2.3
服务器配置 jupyter环境
Seven Devops practices to improve application performance
随机推荐
菜刀,蚁剑,冰蝎,哥斯拉的流量特征
c#图文混合,以二进制方式写入数据库
Tita performance treasure: how to prepare for the mid year examination?
Humi analysis: the integrated application of industrial Internet identity analysis and enterprise information system
漫画:如何实现大整数相乘?(上) 修订版
Use of ThinkPHP template
Read the history of it development in one breath
C # mixed graphics and text, written to the database in binary mode
33: Chapter 3: develop pass service: 16: use redis to cache user information; (to reduce the pressure on the database)
7 pratiques devops pour améliorer la performance des applications
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
Cartoon: how to multiply large integers? (integrated version)
Cmake tutorial step6 (add custom commands and generate files)
Tita 绩效宝:如何为年中考核做准备?
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提出魯棒的多目標貝葉斯優化方法,有效應對輸入噪聲
This 17-year-old hacker genius cracked the first generation iPhone!
为什么阳历中平年二月是28天
VBA drives SAP GUI to realize office automation (II): judge whether elements exist
关于mysql中的json解析函数JSON_EXTRACT