关于QT中自动添加槽函数编译出错的问题
2016-04-19 19:21
435 查看
浅谈:QT += widgets
1.当出现一下的问题的时候,在.pro文件中加上 QT += widgets,试试看。 QObject::connect: No such slot QToolBox::showChatWidget1() in ..\qq_test_new\drawer.cpp:17 QObject::connect: No such slot QToolBox::showChatWidget2() in ..\qq_test_new\drawer.cpp:25 QObject::connect: No such slot QToolBox::showChatWidget3() in ..\qq_test_new\drawer.cpp:33 QObject::connect: No such slot QToolBox::showChatWidget4() in ..\qq_test_new\drawer.cpp:41 QObject::connect: No such slot QToolBox::showChatWidget5() in ..\qq_test_new\drawer.cpp:49 QObject::connect: No such slot QToolBox::showChatWidget6() in ..\qq_test_new\drawer.cpp:57 QObject::connect: No such slot QToolBox::showChatWidget7() in ..\qq_test_new\drawer.cpp:65 QObject::connect: No such slot QToolBox::showChatWidget8() in ..\qq_test_new\drawer.cpp:73 QObject::connect: No such slot QToolBox::showChatWidget9() in ..\qq_test_new\drawer.cpp:812.在pro文件里写”QT+=widgets”表示引入QtWidget这个module,qmake在生成makefile的时候,会设置好include path 和 lib path,在link时候设置好libs。
相关文章推荐
- Qt Designer使用简易教程
- PyQt5系列教程(九)QInputDialog的使用
- QT实现窗口透明的方法
- Qt QtableView使用
- Qt 圆角矩形+鼠标左键拖动窗口
- Opencv + Qt(VS编译器MSVC版本)的使用
- Qt 程序构建执行过程中出错:make: *** No rule to make target ` ‘, needed by xxx. Stop.
- qt4.8程序打包 64位
- Qt 控件
- qt获取IP地址
- 解决QT5.5.1 could not find or load the Qt platform plugin "windows"
- Qt for Windows:Qt 5.5 MinGW 静态编译版本制作带Mysql
- ubuntu下Qt cannot find -lGL错误的解决方法
- Qt 使用statusBar来显示程序打印信息
- Ubuntu qt-4.8.1 SDK 安装
- 【QT】:QT实现连接opencv,版本为2.3.10
- Qt音频播放器
- Qt学习记录--05 函数指针以及类函数指针用于Qt信号槽
- qt4.8.7 2016年4月18日 error reading collection file qthelpcollection cannot load sql
- window10下qt creator下自定义并使用 基于Qt5.3.2