当前位置:网站首页>how to deal with "no such file error or diretory" error for a new programmer in QT creator
how to deal with "no such file error or diretory" error for a new programmer in QT creator
2022-07-20 11:53:00 【全栈程序员站长】
大家好,又见面了,我是全栈君。
when i try to develop a hello demo in QT creator with the code following :
#include<QApplication> #include<QLabel> int main(int argc,char *argv[]) { QApplication app(argc,argv); QLabel l(“hello,word!”); l.show(); return app.exec(); }
the IDE inform me that “QApplication no such file or directory”, then i search the Internet, and find that i should add the following code in “*.pro”:
QT += core gui widgets
or add the following:
QT += core gui greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
these code tell the qmake to include the header.
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/108406.html原文链接:https://javaforall.cn
边栏推荐
猜你喜欢
[英雄星球七月集训LeetCode解题日报] 第20日 BST
换掉 Notepad++,事实证明它更牛逼!
PG operation and maintenance -- common management commands
Dynamic memory management (malloc, free, calloc, realloc, flexible array)
外设篇:触摸屏
C陷阱和缺陷 第0章 导读
Technical scheme of video access AI platform
lambda
外设篇:LCD显示器
what? Does the multi merchant system not adapt to app? This is coming!
随机推荐
精品方案|海泰云密码应用服务解决方案 打造安全合规的云上应用
使用 CSP进行欺诈检测
玩转Makefile文件
[C language] bubble sort upgraded version --- applicable to any type
PMP考试重点难点汇总
Simulate the readline() function of BufferedReader with reader
2020华为云社区年度技术精选合集,700页+免费下载! | 云享·书库 No.01 期推荐(附免费下载)
MySQL索引的数据结构
Peripherals: nandflash and inand
Start to build a three node Eureka cluster
C and pointer Chapter 1 Morphology "trap" 1.2 & and | different from & & and||
C#/VB.NET在 Word 中插入水印
ping 命令还能这么玩?
外设篇:LCD显示器
开源的远程桌面软件RustDesk
低代码加速数字化转型的 5 种方式
上海文旅局局长:安全是文旅业的生命线,正抢抓元宇宙新赛道
Peripherals: LCD display
换掉 Notepad++,事实证明它更牛逼!
grafana可视化配置图表Stat