当前位置:网站首页>Main window in QT application
Main window in QT application
2022-07-05 01:20:00 【A raindrop pouring into the sea】
1. Toolbar of the main window in the application
The main window is with the user Top level window for long-term interaction
programmatic most Functions are directly provided by the main window
The main window is usually The first window displayed after the application starts
The whole program consists of a main window and Multiple dialog boxes form
Qt The main window in :
Qt The concept of main window is directly supported in the development platform
QMainWindow yes Qt The base class of the main window in
QMainWindow Inherited from QWidget Is a container type component
QMainWindow The secret encapsulated in :
QMainWindow Component layout in :
stay Qt Provides menu related class components :
stay Qt Create a menu in the main window :
QMenubar* mb = menuBar(); //member function
QMenu* menu = new QMenu("File(&F)");
QAction* action = new QAction("New", NULL);
menu->addAction(action);
mb->addMenu(menu);
Shortcut key settings :
action->setShortcut(QKeySequence(KEY));
QKeySeauence - Qt Classes related to shortcut keys in
KEY - QT Constants representing key values in
2. Status bar in main window
边栏推荐
- Classification of performance tests (learning summary)
- Analysis and comparison of leetcode weekly race + acwing weekly race (t4/t3)
- 【海浪建模3】三维随机真实海浪建模以及海浪发电机建模matlab仿真
- Actual combat simulation │ JWT login authentication
- Basic operations of database and table ----- create index
- 142. Circular linked list II
- 【FPGA教程案例9】基于vivado核的时钟管理器设计与实现
- 微信小程序:微群人脉微信小程序源码下载全新社群系统优化版支持代理会员系统功能超高收益
- Arbitrum:二维费用
- [microprocessor] VHDL development of microprocessor based on FPGA
猜你喜欢
多模输入事件分发机制详解
Wechat applet: the latest WordPress black gold wallpaper wechat applet two open repair version source code download support traffic main revenue
LeetCode周赛 + AcWing周赛(T4/T3)分析对比
Playwright之录制
微信小程序:独立后台带分销功能月老办事处交友盲盒
“薪資倒掛”、“畢業生平替” 這些現象說明測試行業已經...
[wave modeling 1] theoretical analysis and MATLAB simulation of wave modeling
Redis(1)之Redis简介
Chia Tai International Futures: what is the master account and how to open it?
107. Some details of SAP ui5 overflow toolbar container control and resize event processing
随机推荐
SAP ui5 application development tutorial 106 - how to improve the readability of SAP ui5 application routing URL trial version
Four pits in reentrantlock!
107. SAP UI5 OverflowToolbar 容器控件以及 resize 事件处理的一些细节介绍
Global and Chinese markets of radiation linear accelerators 2022-2028: Research Report on technology, participants, trends, market size and share
The most complete regular practical guide of the whole network. You're welcome to take it away
Redis(1)之Redis简介
[flutter topic] 64 illustration basic textfield text input box (I) # yyds dry goods inventory #
揭露测试外包公司,关于外包,你或许听到过这样的声音
【微处理器】基于FPGA的微处理器VHDL开发
Take you ten days to easily complete the go micro service series (IX. link tracking)
Discrete mathematics: reasoning rules
Database postragesql client connection default
【FPGA教程案例9】基于vivado核的时钟管理器设计与实现
Wechat applet: exclusive applet version of the whole network, independent wechat community contacts
Delaying wages to force people to leave, and the layoffs of small Internet companies are a little too much!
A simple SSO unified login design
[CTF] AWDP summary (WEB)
To sort out messy header files, I use include what you use
Using openpyxl module to write the binary list into excel file
What happened to those who focused on automated testing?