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
相关文章
相关标签/搜索