1.在main.cpp中添加
// 在main.cpp中添加
#ifdef QT_DEBUG
#include <QQmlDebuggingEnabler>
QQmlDebuggingEnabler enabler;
#endif
2.启用QML调试:
项目属性 → Qt Project Settings
勾选"Enable QML debugging and profiling"
1.在main.cpp中添加
// 在main.cpp中添加
#ifdef QT_DEBUG
#include <QQmlDebuggingEnabler>
QQmlDebuggingEnabler enabler;
#endif
2.启用QML调试:
项目属性 → Qt Project Settings
勾选"Enable QML debugging and profiling"
524
5372

被折叠的 条评论
为什么被折叠?
