在VS下使用QDebug打印調試信息

#include <QDebug> ... qDebug() << "Brush:" << myQBrush << "Other value:" << i; VS進入 Project Properties > Linker > System : 設置 SubSystem to 「SUBSYSTEM:CONSOLE」,而後你在VS下運行你的Qt程序時就會發現多了一個cmd的窗口,會輸出一些調試信息。
相關文章
相關標籤/搜索