Qt:qvbox.h”: No such file or directory
来源:互联网 发布:淘宝店铺装修案例 编辑:程序博客网 时间:2024/06/04 10:42
在QT4的编译环境中编Qt3的教程《家庭价值》时候,出现qvbox.h”: No such file or directory
The QVBox class is now only available as Q3VBox in Qt 4. You can achieve the same result as QVBox by creating a QWidget with a vertical layout:
网上是这样解决的:
#include
#include
#include
#include
int main( int argc, char **argv )
{
QApplication a( argc, argv );
QWidget window; //定义一窗口
window.resize(200,120); //窗口大小
QVBoxLayout layout; //竖着排设计类
QPushButton quit( "Quit", &window ); //退出按钮
quit.setFont( QFont( "Times", 18, QFont::Bold ) ); //字体
QObject::connect( &quit, SIGNAL(clicked()), &a, SLOT(quit()) ); // 按钮按下既是退出信号
layout.addWidget(&quit); //
window.setLayout(&layout); //
window.show();
return a.exec();
}
- Qt:qvbox.h”: No such file or directory
- qvbox.h”: No such file or directory
- qvbox.h”: No such file or directory
- nspr.h: No such file or directory
- stdio.h: No such file or directory
- “fstream.h”: No such file or directory
- dxtrans.h": No such file or directory
- dxtrans.h": No such file or directory
- Python.h:No such file or directory
- crtdbg.h: No such file or directory
- sk_stdint.h: No such file or directory
- Python.h: No such file or directory
- Python.h: No such file or directory
- Python.h:No such file or directory
- Python.h:No such file or directory
- Python.h:No such file or directory
- jni.h: no such file or directory
- Jni.h No such file or directory:
- casperJs 填写没有name的input 点击按钮
- 风险管理
- 比特币交易构成
- 4.1
- GDB查看内存命令(x命令)
- Qt:qvbox.h”: No such file or directory
- 约翰霍普金斯大学数据科学系列课程——R语言:数据类型
- swift 快速奔跑的兔几 本节的内容是:绘画
- 利用Centos6系统自带的logrotate切割nginx日志
- 做营销型网站需要考虑的问题
- IBOutLet/IBAction/IBDesignable/IBInspectable
- 第一次博客
- (五)ActiveMQ分享JMS简介
- 网络知识补遗