我的 QT creator 4.6.3版本 我是在QT creator下些的程序,提示:“qvbox.h”: No such file or directory
就算高版本废除了<qtvbox.h>那他也应该兼容啊 我该怎么使用那个QVBox控件呢?
是不是在
QVBoxLayout里面呢 还是 在其他里面呢 该使用什么 如下程序和图片:
#include <qapplication.h>
#include <qpushbutton.h>
#include <qfont.h>
#include <qvbox.h>//系统提示没有 int main(int argc, char *argv[])
{
QApplication a( argc, argv );
QVBox box;
//不被识别
box.resize( 200, 120 );
QPushButton quit( "Quit", &box );
quit.setFont( QFont( "Times", 18, QFont::Bold ) );
QObject::connect( &quit, SIGNAL(clicked()), &a, SLOT(quit()) );
a.setMainWidget( &box );
box.show();
return a.exec();