用VS2010來開發qt

1.從http://qt-project.org/downloads 下載最新的爲vs2010編譯的qt library和VS add-in 
2.依次安裝qt library 和VS add-in
3.打開VS2010,依次打開qt5->qt options->Qt versions,單擊add,在彈出的對話框裏點擊Path後面的路徑選擇按鈕,我這裏是(C:\Qt\Qt5.0.1\5.0.1\msvc2010),他會自己檢測該目錄bin下面是否有qmake.exe,如有OK按鈕可以按下,沒有則重新選擇。
4.打開VS2010,新建項目就看見qt5的模板了。

我在根據qt5模板建立項目的時候彈出錯誤
---------------------------
Microsoft Visual Studio
---------------------------
An error occurred while creating or opening the C++ browsing database file C:\DOCUME~1\10170793\LOCALS~1\Temp\VC++\asd-2ea23bef\asd.sdf. IntelliSense and browsing information will not be available for C++ projects.

Ensure that Microsoft SQL Server Compact 3.5 is installed and that no other applications are accessing the file. If this problem persists, delete the file and reopen the solution.
---------------------------
OK   
---------------------------
之前不記得有這種錯誤,baidu得到解決方案:http://www.chaochaoblog.com/archives/892

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章