当前位置:网站首页>使用QT设计师界面类创建2个界面,通过按键从界面1切换到界面2
使用QT设计师界面类创建2个界面,通过按键从界面1切换到界面2
2022-07-05 17:14:00 【雪无香】
思路:按钮点击函数hide窗口1同时emit广播点击信号(自己加),main使用connect,窗口1发出点击信号,运行窗口2show显示函数
步骤一:Add new——QT——设计师界面类
步骤二:窗口一
signals:
void Show_EnterBtn();//登录按钮被点击信号
private slots:
void on_EnterBtn_clicked();//登录按钮相应函数:关闭登录界面,广播登录按钮点击信号
void Enter::on_EnterBtn_clicked()
{
this->hide();//隐藏窗口1
emit Show_EnterBtn();//广播按钮点击信号
}
步骤三:窗口二
private slots:
void Show_FuncSelect();//显示窗口2步骤四:main函数
QObject::connect(&mEnter,SIGNAL(Show_EnterBtn()),&mFuncSelect,SLOT(Show_FuncSelect()));//点击按钮,关闭窗口1,显示窗口2边栏推荐
- Oracle Recovery Tools ----oracle数据库恢复利器
- [7.7 live broadcast preview] the lecturer of "typical architecture of SaaS cloud native applications" teaches you to easily build cloud native SaaS applications. Once the problem is solved, Huawei's s
- Cartoon: how to multiply large integers? (integrated version)
- C # mixed graphics and text, written to the database in binary mode
- IDC报告:腾讯云数据库稳居关系型数据库市场TOP 2!
- 十个顶级自动化和编排工具
- Server configuration jupyter environment
- Is it safe and reliable to open futures accounts on koufu.com? How to distinguish whether the platform is safe?
- C#实现水晶报表绑定数据并实现打印3-二维码条形码
- 独立开发,不失为程序员的一条出路
猜你喜欢

7 pratiques devops pour améliorer la performance des applications

Alpha conversion from gamma space to linner space under URP (II) -- multi alpha map superposition

Using C language to realize palindrome number

To solve the problem of "double click PDF file, pop up", please install Evernote program

CMake教程Step1(基本起点)

Knowledge points of MySQL (6)

提高應用程序性能的7個DevOps實踐

CVPR 2022最佳学生论文:单张图像估计物体在3D空间中的位姿估计

解决“双击pdf文件,弹出”请安装evernote程序

VBA驱动SAP GUI实现办公自动化(二):判断元素是否存在
随机推荐
Tita performance treasure: how to prepare for the mid year examination?
Summary of optimization scheme for implementing delay queue based on redis
Server configuration jupyter environment
The five most difficult programming languages in the world
winedt常用快捷键 修改快捷键latex编译按钮
CMake教程Step4(安装和测试)
Database design in multi tenant mode
北京内推 | 微软亚洲研究院机器学习组招聘NLP/语音合成等方向全职研究员
一文了解Go语言中的函数与方法的用法
2022 information system management engineer examination outline
Tita 绩效宝:如何为年中考核做准备?
BigDecimal除法的精度问题
mysql中取出json字段的小技巧
MySQL queries the latest qualified data rows
IDC报告:腾讯云数据库稳居关系型数据库市场TOP 2!
Force deduction solution summary 729- my schedule I
关于mysql中的json解析函数JSON_EXTRACT
How MySQL uses JSON_ Extract() takes JSON value
Abnormal recovery of virtual machine Oracle -- Xi Fenfei
CMake教程Step6(添加自定义命令和生成文件)