QT开发点滴记录


[问题] 
[解答] 


[问题] Could not find qmake configuration file default. 
[解答]


[问题] QtCreator: no valid kits found
[解答] Options -> Qt Version

[问题] qtserialport安装方法
[解答] https://wiki.qt.io/Qt_Serial_Port

[问题] 'class QString' has no member named 'toAscii'
[解答] toAscii 替换为 toLatin1

[问题] 错误:undefined reference to `GUID_DEVINTERFACE_COMPORT'
[解答] #include 
在文件qextserialenumerator.cpp中添加上面这个头文件引用语句

[问题] 错误:'PHYSICAL_ADDRESS' does not name a type
[解答] #undef PHYSICAL_ADDRESS
#define PHYSICAL_ADDRESS LARGE_INTEGER
添加上面两行到文件ntddser.h中

[问题] 错误:undefined reference to `GUID_DEVINTERFACE_COMPORT'
[解答] #include 
在文件qextserialenumerator.cpp中将这个头文件引用位置放在另一个
头文件#include 引用的下方, 这个错误是头文件引用顺序
不对导致的.

[问题] 屏蔽release版本中所有QDebug()提示信息
[解答] 如果要在命令行输出时不打出所有qdebug信息,可以在pro文件中添加DEFINES+=QT_NO_DEBUG_OUTPUT


你可能感兴趣的:(QT开发点滴记录)