• 6070阅读
  • 1回复

请教第四章例题的问题 [复制链接]

上一主题 下一主题
离线zwfd
 
只看楼主 倒序阅读 楼主  发表于: 2009-04-25
第三、四章是一个整体。虽然说能理解书上的程序,但编译程序时还是有问题。后面列出了错误信息。因为是初学,
很难分析出原因。希望有熟悉的专家指教。是否与版本有关?与路径的设置有关?

mainwindow.cpp
.\ui_gotocelldialog.h(17) : fatal error C1083: Cannot open include file: 'QtGui/
QDialogButtonBox': No such file or directory

spreadsheet.cpp
.\spreadsheet.cpp(67) : error C2039: 'Qt_4_3' : is not a member of 'QDataStream'

        C:/Qt/4.1.0/include\QtCore/../../src/corelib/io/qdatastream.h(48) : see
declaration of 'QDataStream'
.\spreadsheet.cpp(67) : error C2065: 'Qt_4_3' : undeclared identifier
.\spreadsheet.cpp(104) : error C2039: 'Qt_4_3' : is not a member of 'QDataStream'
        C:/Qt/4.1.0/include\QtCore/../../src/corelib/io/qdatastream.h(48) : see
declaration of 'QDataStream'

gotocelldialog.cpp
.\ui_gotocelldialog.h(17) : fatal error C1083: Cannot open include file: 'QtGui/
QDialogButtonBox': No such file or directory

sortdialog.cpp
.\ui_sortdialog.h(30) : error C2143: syntax error : missing ';' before '<class-head>'
.\ui_sortdialog.h(30) : error C2501: 'QT_BEGIN_NAMESPACE' : missing storage-class or type specifiers
.\ui_sortdialog.h(30) : fatal error C1004: unexpected end of file found

如有示教,非常感谢!
离线yfx2003

只看该作者 1楼 发表于: 2009-04-29
从整体上看,楼主使用的Qt应该不是4.3.1以下的版本

是否是4.5以上的版本?

如是,则应当注意 QDialogButtonBox 之类的类包含于何目录下

其他问题类同
www.qtcn.org/gpq4/
ajaxref.okajax.com/
快速回复
限100 字节
 
上一个 下一个