73 QT編程入門

0 引言

最近開始在QT下編程,記錄一下遇到的問題以及解決方法。html

1 安裝下載及學習資料

(1)安裝下載連接

安裝連接: https://blog.csdn.net/qq_23473839/article/details/80523318
不一樣版本的安裝包下載連接: http://download.qt.io/archive/qt/

(2)學習資料連接

QT編程指南: https://qtguide.ustclug.org/

(3)信號槽機制

IBM developer:  https://www.ibm.com/developerworks/cn/linux/guitoolkit/qt/signal-slot/index.html
博客園老哥: http://www.javashuo.com/article/p-mewoopvd-bs.html

 2 bug類

(1)Error: Could not decode  "GLCanvas.cpp" with "UTF-8"-coding. Editing not possible.

解決方法:linux

(1.1)找到該文件所在目錄,用notepad++ 打開該文件git

(1.2)notepad++:編碼 -》 轉爲UTF-8編碼 -》 保存退出github

 

(1.3)回到QT: Yes to ALL,轉換成功; 若是Error還沒消失的話,就點Select Encoding, 選擇 system就行編程

 (2)編碼問題錯誤

(1.1)下載github上下載了註釋語言爲加泰羅尼亞語的代碼,其編碼格式未知,反正不是UTF-8,致使代碼在QT裏沒法編輯。爲了解決這個問題,採用notepad++進行轉碼,獲得的文件發生了0中的問題,截圖以下。ide

轉碼前:
//Creaci?del canal d'informaci?    
mSceneInformationBuilder->CreateHistogram(mScene, mSphereOfViewpoints, pWidthResolution, pFaceCulling, true);

轉碼後
//Creaci?del canal d'informaci?    mSceneInformationBuilder->CreateHistogram(mScene, mSphereOfViewpoints, pWidthResolution, pFaceCulling, true);

(1.2)結果致使傳值傳不進去,程序運行發生錯誤,回車就好啦。學習

3 qt調試

(1)qtmaind.pdbui

調試文件,沒有不影響運行,可是會報warning的錯,致使沒法正常調試。編碼

 

4 qt下的可視化

PCL+Qt+VS可視化點雲spa

https://blog.csdn.net/wokaowokaowokao12345/article/details/51078495
相關文章
相關標籤/搜索