当前位置:网站首页>QT learning 04 Hello QT
QT learning 04 Hello QT
2022-06-30 00:00:00 【A little black sauce】
Qt Study 04 Hello Qt
Qt What is it? ?
- Qt It's a set Cross platform Of GUI Development Library
- Qt It's a set C++ Inherit the development environment
- Qt It's a set Open source palace level architecture technology tutorial
Get into Qt The world of
- first Qt Program
#include <QApplication>
#include <QMainWindow>
#include <QPushButton>
int main(int argc, char *argv[])
{
QApplication a(argc, arv);
QMainWindow w;
QPushButton b(&w);
b.setText("Hello QT!");
w.show();
return a.exec();
}
Qt development environment
- adopt Command line The way to compile Qt Source program
- start-up Qt Command line
- Enter the directory where the source program is located
- command :
1.qmake -project // Generate project files according to the source code in the directory
2.qmake // According to the project file generation makefile file
3.make // according to makefile Compile
Qt Creator
- Qt Creator It's a set Visual integrated development environment
- Use Qt Creator Sure efficient Conduct Qt Development
- Qt Creator Provides Powerful code editing function
- Qt Creator Provides Powerful debugging function
The basic method of debugging
Log Debugging method :
Add some... To the code Print statement
Print Program status and Key variables Value
Breakpoint debugging
Add... To the corresponding line of code in the development environment The breakpoint
When the program runs to the breakpoint line , The program stops running
Add... If necessary Conditional breakpoints , When the conditions are met, the program will be suspended
Summary
- Qt One set per hour Cross platform Of C++ Interface development library
- Can pass Command line Way of development Qt Applications
- It can also be done through Qt Creator Conduct Qt Development
- Qt Creator Support at the same time Log Debugging method and Breakpoint debugging
边栏推荐
- [译]在软件开发行业工作 6 年后,那些年我曾改过的观念
- 剑指 Offer 14- I. 剪绳子
- AI empowers new retail, the way to win "wisdom" lies in ecological thinking | selected excerpts from digital intelligence night talk live broadcast
- 机器学习:VC维的概念和用途
- Sword finger offer 14- ii Cutting rope II
- 西门子低代码平台通过Database Connector 连接Mysql 实现增删改查
- Embedded development: Hardware in the loop testing
- Which securities company should I choose to open an account online? Also, is it safe to open an account online?
- Divisor
- 数莓派 4怎么样?可能的玩法有哪些?
猜你喜欢

Cartoon security HIDS, EDR, NDR, XDR

Simple understanding of B tree and b+ tree

Matplotlib plt Hist() parameter explanation

Applet plug-in access, development and precautions

Start harvesting! Nailing: adjust the maximum number of free users of "nailing team". If the number exceeds 10, it will not work normally

Why is JSX syntax so popular?

剑指 Offer 14- I. 剪绳子

Jetpack之Room的使用,结合Flow

6.29 problem solving

HPE launched ARM CPU general server product
随机推荐
AI赋能新零售,「智」胜之道在于生态思维|数智夜话直播精选摘录
How about counting Berry Pie 4? What are the possible ways to play?
新钛云服荣膺“2022爱分析 · IT运维厂商全景报告”云管理平台CMP 代表厂商!...
Siemens low code platform connects MySQL through database connector to realize addition, deletion, modification and query
Which securities company is good for opening a mobile account? In addition, is it safe to open a mobile account?
500 error occurred after importing skins folder into solo blog skin
On binary tree
Cacti settings for spin polling
Official website of Greentree
After crossing, she said that the multiverse really exists
Basic tutorial for installing monggodb in win10
【微信小程序】认识小程序项目的基本组成结构
Head on Amway! Good looking and practical motor SolidWorks model material see here
Implementation of aut, a self-developed transport layer protocol for sound network -- dev for dev column
Divisor
Metaq cluster installation test
How to view the CPU cores and threads in win11? Win11 view the tutorial of how many cores and threads the CPU is
Sword finger offer 14- I. cut rope
Unity splashimage scaling problem
Unity about failure (delay) of destroy and ondestroy