当前位置:网站首页>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
边栏推荐
- 除子
- Cacti关于spine轮询的设置
- Bee常用配置
- Siemens low code platform connects MySQL through database connector to realize addition, deletion, modification and query
- 招商证券靠谱吗?开股票账户安全吗?
- 剑指 Offer 14- I. 剪绳子
- Bee common configuration
- LC: effective Sudoku + rotating image
- Leetcode (680) -- verifying palindrome string II
- Inspiration collection · evaluation of creative writing software: flomo, obsidian memo, napkin, flowus
猜你喜欢

Applet plug-in access, development and precautions

Why is JSX syntax so popular?

Serialization of binary tree 297 Serialization and deserialization of binary tree 652 Find duplicate subtrees

matlab习题 —— 程序控制流程练习

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

Jetpack之Room的使用,结合Flow

Common knowledge of ECS security settings

机器学习:VC维的概念和用途

西门子低代码 9.14版本: 满足不同需求

AI赋能新零售,「智」胜之道在于生态思维|数智夜话直播精选摘录
随机推荐
Unity splashimage scaling problem
LC:有效的数独 + 旋转图像
Ingenious application of golang generics to prevent null pointer errors of variables and structural fields
由GlideException: Failed DecodePath{DirectByteBuffer->GifDrawable->Drawable}引起的刨根问底
Cacti settings for spin polling
25 interview questions about Apache
solo 博客皮肤导入 skins 文件夹后出现 500 错误
云服务器的安全设置常识
Analysis of define incdir command in TCL script of Modelsim
Start harvesting! Nailing: adjust the maximum number of free users of "nailing team". If the number exceeds 10, it will not work normally
西门子低代码 9.14版本: 满足不同需求
Which securities company should I choose to open an account online? Also, is it safe to open an account online?
二叉树的序列化 力扣 297. 二叉树的序列化与反序列化 652. 寻找重复的子树
Siemens low code version 9.14: meet different needs
Leetcode(633)——平方数之和
Cacti最大监控数测试
西门子低代码平台通过Database Connector 连接Mysql 实现增删改查
[wechat applet] understand the basic composition of the applet project
【微信小程序】认识小程序项目的基本组成结构
FPGA Development (2) -- IIC communication