首页| 论坛| 消息

标题:【提问】找不到q3scrollview.h?
作者:lcc_zjut
日期:2006-02-22 23:56
内容:

我包含头文件的时候
#include
#include
#include
#include
#include
用mingw32-make编译后,提示出错了:
scroll.cpp:5:26: q3scrollview.h: No such file or directory
其他几个文件都能找到,不知是什么原因请各位大侠帮忙!
我Qt版本是4.1的,平台是windows


#1 [XChinux 02-23 01:10]
你真实地找转include目录下是否这个文件存在
#2 [lcc_zjut 02-23 02:30]
是这样的,我在include/Qt下面找到了这个文件,我打开看了一下,这里面是这样写的:
#include "../../src/qt3support/widgets/q3scrollview.h"
我去src/qt3support/widgets目录下看的确有这个文件,好像就是我想要的,但是就是读不到!!
然后,我看qwidget,他在include/Qt下面打开看是这样写的:
#include "../../src/gui/kernel/qwidget.h"
在/gui/kernel中,我头文件包含了一下就能找到!
是不是Qt4.1的头文件改了,还是我在windows下仅仅安装是不够的,还要编译一下啊?
#3 [lcc_zjut 02-23 02:36]
斑竹,我下了Qt4.1英文参考手册。现关于QScrollView的说明如下:
The QScrollView class has been renamed Q3ScrollView and moved to the Qt3Support library. It has been replaced by the QAbstractScrollArea and QScrollArea classes.
QScrollView was designed to work around the 16-bit limitation on widget coordinates found on most window systems. In Qt 4, this is done transparently for all widgets, so there is no longer a need for such functionality in QScrollView. For that reason, the new QAbstractScrollArea and QScrollArea classes are much more lightweight, and concentrate on handling scroll bars.
是不是说QScrollView 类被QAbstractScrollArea 和QScrollArea取代了?
#4 [lcc_zjut 02-23 18:10]
斑竹,我又试了一下,好像对于q3开头的头文件都找不到!
怎么办啊?
#5 [lcc_zjut 02-24 18:10]
自己换了个方式解决.我把操作系统换成了linux什么问题都没有 了

回复 发表
主题 版块