yslow,昆明火车站砍人,争先恐后
c++ gui qt4 23页的程序在编译时出了个错误ubunto终端显示错误如下main.cpp:18:43: error: invalid use of incomplete type ‘class qpushbutton’ buttonbox->button(qdialogbuttonbox::ok)->setenabled(lineedit->hasacceptablei ^in file included from /usr/local/trolltech/qt-4.8.1/include/qtgui/qdialog:1:0, from main.cpp:2:/usr/local/trolltech/qt-4.8.1/include/qtgui/qdialog.h:53:7: note: forward declaration of ‘class qpushbutton’ class qpushbutton; ^makefile:213: recipe for target 'main.o' failedmake: *** [main.o] error 1包含一个头文件#include就可以了!哈哈
如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复
如何在没有core文件的情况下用dmesg+addr2line定位段错误
用QT制作3D点云显示器——QtDataVisualization
网友评论