您的位置:首页 > 编程语言 > Qt开发

关于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。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: