当前位置:网站首页>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
边栏推荐
- Virtual machine online migration based on openstack
- MySQL functions and constraints
- 500 error occurred after importing skins folder into solo blog skin
- Golang6 reflection
- Xutils3 transfer set
- Golang泛型的巧妙应用,防止变量空指针错误,防止结构体字段空指针错误
- Matplotlib plt Hist() parameter explanation
- Halcon practical: design idea of solder joint detection
- Halcon实用:焊点检出设计思路
- I wonder if I can open an account today? In addition, is it safe to open an account online now?
猜你喜欢

剑指 Offer 13. 机器人的运动范围

Common knowledge of ECS security settings

Halcon practical: design idea of solder joint detection

About mongodb error: connecting to: mongodb://127.0.0.1:27017/?compressors=disabled &gssapiServiceName=mongodb

漫画安全HIDS、EDR、NDR、XDR

Digital collection of cultural relics, opening a new way of cultural inheritance

Basic tutorial for installing monggodb in win10

The role of VMware virtual machine

Inspiration collection · evaluation of creative writing software: flomo, obsidian memo, napkin, flowus

MySQL multi table query
随机推荐
What is IGMP? What is the difference between IGMP and ICMP?
Solr basic operation 2
剑指 Offer 15. 二进制中1的个数
Exploration and Practice on the future direction of byte cloud database
AI首席架构师9-胡晓光 《飞桨模型库与行业应用》
Siemens low code version 9.14: meet different needs
Unity about failure (delay) of destroy and ondestroy
Virtual machine online migration based on openstack
Fund information disclosure
Is China Merchants Securities reliable? Is it safe to open a stock account?
6.29日刷题题解
What is online account opening? In addition, is it safe to open a mobile account?
架构实战营模块5作业
Divisor
Head on Amway! Good looking and practical motor SolidWorks model material see here
solo 博客皮肤导入 skins 文件夹后出现 500 错误
[wechat applet] understand the basic composition of the applet project
Leetcode(76)——最小覆盖子串
@Scheduled annotation pit, I stepped on it for you
LC:最大子数组和