浅谈: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:81
2.在pro文件里写”QT+=widgets”表示引入QtWidget这个module,qmake在生成makefile的时候,会设置好include path 和 lib path,在link时候设置好libs。