Skip to content

QT 问题记录

如何找 QT 程序的错误原因

使用 export QT_DEBUG_PLUGINS=1, 然后再运行文件, 这样会显示比较详细的信息告诉你错在哪里。

QtGui/... flie not found

QtGui is not in the Qt5, we should use QtWidgets

qt 和 connect冲突

把 connect 变为 ::connect 即可

qt 更改名称容易导致的错误,ui 中 design 中也要改掉名字

qt: undefined reference to vtable..

https://stackoverflow.com/questions/2555816/qt-linker-error-undefined-reference-to-vtable

qt --qdebug 显示不了

touch ~/.config/QTProject/qtlogging.ini

Comments