我是新來使用Qt開發,我希望編譯自帶的Qt 4.8.5 Qt的網絡聊天例如:http://qt-project.org/doc/qt-4.8/network-network-chat.html找不到ui_chatdialog.h使用Qt 4.8.5網絡例如W/VS 2008
我「M在VS 2012的工作,但用VS 2008編譯我有以下包括:
C:\Qt\4.8.5\include\Qt;
C:\Qt\4.8.5\include\QtUiTools;
C:\Qt\4.8.5\include;
C:\Qt\4.8.5\include\QtCore;
C:\Qt\4.8.5\include\QtGui;
C:\Qt\4.8.5\include\QtNetwork;
%(AdditionalIncludeDirectories)
我覺得有一些步驟我缺少在編譯過程中,或許有些生成ui_chatdialog.h文件?我找不出爲什麼它從示例中缺失,並且它不在我下載的Qt版本(4.8.5)附帶的文件中。
這是我的電流輸出:
>------ Rebuild All started: Project: QTChatExample, Configuration: Release Win32 ------
1> chatdialog.cpp
1>c:\users\dustin\documents\qtchatexample\src\chatdialog.h(44): fatal error C1083: Cannot open include file: 'ui_chatdialog.h': No such file or directory
1> client.cpp
1> connection.cpp
1> main.cpp
1>c:\users\dustin\documents\qtchatexample\src\chatdialog.h(44): fatal error C1083: Cannot open include file: 'ui_chatdialog.h': No such file or directory
1> peermanager.cpp
1> server.cpp
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
可以使用插件V1.2.2在Visual Studio 2012使用的Qt4,看答案關聯的問題 –