首页| 论坛| 消息

标题:C++_GUI_QT4_书本样例程序源码,如何使用?
作者:zwfd
日期:2009-04-19 15:31
内容:

使用C++_GUI_QT4_书本样例程序源码\chap04\spreadsheet
进行编译
先:qmake -project
后:qmake
接下来:nmake
出现下面的错误:
mainwindow.cpp
.\mainwindow.cpp(167) : error C2039: 'New' : is not a member of 'QKeySequence'
C:/Qt/4.1.0/include\QtGui/../../src/gui/kernel/qkeysequence.h(45) : see
declaration of 'QKeySequence'
.\mainwindow.cpp(167) : error C2065: 'New' : undeclared identifier
.\mainwindow.cpp(173) : error C2039: 'Open' : is not a member of 'QKeySequence'
C:/Qt/4.1.0/include\QtGui/../../src/gui/kernel/qkeysequence.h(45) : see
declaration of 'QKeySequence'
.\mainwindow.cpp(173) : error C2065: 'Open' : undeclared identifier
.\mainwindow.cpp(179) : error C2039: 'Save' : is not a member of 'QKeySequence'
C:/Qt/4.1.0/include\QtGui/../../src/gui/kernel/qkeysequence.h(45) : see
declaration of 'QKeySequence'
.\mainwindow.cpp(179) : error C2065: 'Save' : undeclared identifier
.\mainwindow.cpp(202) : error C2039: 'Cut' : is not a member of 'QKeySequence'
C:/Qt/4.1.0/include\QtGui/../../src/gui/kernel/qkeysequence.h(45) : see
declaration of 'QKeySequence'
.\mainwindow.cpp(202) : error C2065: 'Cut' : undeclared identifier
.\mainwindow.cpp(209) : error C2039: 'Copy' : is not a member of 'QKeySequence'
C:/Qt/4.1.0/include\QtGui/../../src/gui/kernel/qkeysequence.h(45) : see
declaration of 'QKeySequence'
.\mainwindow.cpp(209) : error C2065: 'Copy' : undeclared identifier
.\mainwindow.cpp(216) : error C2039: 'Paste' : is not a member of 'QKeySequence'
C:/Qt/4.1.0/include\QtGui/../../src/gui/kernel/qkeysequence.h(45) : see
..


#1 [azlbcoo 04-21 11:20]
我在windows下的qt4.5 QtCreator直接打开.pro 文件,直接通过了。我机子上只有 4.5。

回复 发表
主题 版块