当前位置:网站首页>QT工程基本构建
QT工程基本构建
2022-07-29 10:35:00 【曹乐乐爱学习】
默认构建mainwindow即可。步骤略。
创建好后用Desktop5.12.9GCC直接编译,会报错:
/usr/bin/ld: cannot find -lGL
collect2: error: ld returned 1 exit status
需要安装open GL的库:
sudo apt-get install libglu1-mesa-dev
QT工程分析:
qt.pro
QT += core gui /
/指该工程中要使用的模块 如果要使用其他模块,可以去QT官网查看都有哪些模块
然后点击:
再然后:
再然后:
选择对应版本(我用的是5.12)
再然后:
如果要使用网络模块:
点进去:
拿到自己工程中:
注意:
文件内容,要与左边窗体一一对应
点击小锤子
,是编译;点击绿三角
是编译并运行;
生成的文件与工程目录同级,生成的APP名字与工程同名:

如果要修改生成app的名字:

边栏推荐
- PAHO cross compilation
- MySQL optimization theory study guide
- Explore SQL Server metadata (I)
- LeetCode二叉树系列——144.二叉树的前序遍历
- R 语言 二分法与 牛顿迭代法计算中方程的根
- Factoextra: visual PCA of multivariate statistical methods
- R language Monte Carlo method and average method are used to calculate the definite integral. Considering the random point casting method, the confidence is 0.05, and the requirement is ϵ= 0.01, numbe
- DW: optimize the training process of target detection and more comprehensive calculation of positive and negative weights | CVPR 2022
- The server
- [dark horse morning post] Youxian responded to the dissolution every day, and many places have been unable to place orders; Li Bin said that Wei Lai will produce a mobile phone every year; Li Ka Shing
猜你喜欢

Easy to understand and explain the gradient descent method!

Kunlunbase instruction manual (IV) real time synchronization of data from Oracle to kunlunbase

可线性渐变的环形进度条的实现探究

会议OA项目----我的审批

Using Riemann sum to calculate approximate integral in R language

Turn the evolutionary path of push

MySQL 8 of relational database -- deepening and comprehensive learning from the inside out

How to realize the function of adding watermark

12代酷睿处理器+2.8K OLED华硕好屏,灵耀14 2022影青釉商务轻薄本

Learning R language these ebooks are enough!
随机推荐
Evolution of xxl-job architecture for distributed scheduling
2022cuda summer training camp day3 practice
服务器
Follow teacher Li to learn online generation - matrix (continuously updated)
【日志框架】
R语言 使用数据集 veteran 进行生存分析
Using R-Pack premsim to predict microsatellite instability based on gene expression
跟着武老师学高数——函数、极限和连续(持续更新)
Mitsubishi PLC and Siemens PLC
What happens when MySQL tables change from compressed tables to ordinary tables
factoextra:多元统计的可视化
Easy to understand and explain the gradient descent method!
[jetson][reprint]pycharm installed on Jetson
2022cuda summer training camp Day5 practice
mosquitto_ Sub -f parameter use
How can agile development reduce cognitive bias in collaboration| Agile way
paho交叉编译
主子仓库都修改,如何进行同步?
A tour of grp:04 - GRP unary call unary call
VMWare:使用命令更新或升级 VMWare ESXi 主机









