第三、四章是一个整体。虽然说能理解书上的程序,但编译程序时还是有问题。后面列出了错误信息。因为是初学,
很难分析出原因。希望有熟悉的专家指教。是否与版本有关?与路径的设置有关?
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
如有示教,非常感谢!