qvbox.h”: No such file or directory
2013-12-24 09:57
113 查看
在QT4的编译环境中编译《Qt入门教程》第三章 家庭价值时候,出现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:
网上是这样解决的:
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 <qapplication.h> #include <qpushbutton.h> #include <qfont.h> #include <qboxlayout.h> 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(); }
相关文章推荐
- sh脚本异常:/bin/sh^M:bad interpreter: No such file or directory
- 无法打开包括文件:“QtNetwork”: No such file or directory
- QT5.0.1在Windows下 出现QApplication: No such file or directory 问题的解决办法
- fatal error C1083: Cannot open include file: 'jni.h': No such file or directory
- sqlstate[hy000] [2002] No such file or directory in ...错误
- shell脚本报错问题: -bash: ./test.sh: /bin/sh^M: bad interpreter: No such file or directory
- Android之eclipse错误 error opening trace file: No such file or directory (2)解决办法总结
- env: node: No such file or directory
- 编译git时报错: zlib.h: No such file or directory
- -bash: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory
- 修复/lib/ld-linux.so.2: bad ELF interpreter: No such file or directory 问题
- Error:/bin/bash: /bin/java: No such file or directory
- bad interpreter: No such file or directory
- Cannot open include file: 'fstream.h': No such file or directory
- 执行脚本出现bin/bash: bad interpreter: No such file or directory
- -bash: /bin/ls: No such file or directory
- redis linux安装 [adlist.o] Error jemalloc/jemalloc.h: No such file or directory
- rmmod: chdir(/lib/modules): No such file or directory
- vc编程时说“Cannot open include file: 'unistd.h': No such file or directory”
- jpeg_read.c(52) : fatal error C1083: 无法打开包括文件:“jerror.h”: No such file or directory