#include <QDebug> ... qDebug() << "Brush:" << myQBrush << "Other value:" << i;
VS进入 Project Properties > Linker > System : 设置 SubSystem to "SUBSYSTEM:CONSOLE",而后你在VS下运行你的Qt程序时就会发现多了一个cmd的窗口,会输出一些调试信息。html
参考资料:visual-studio
http://doc.qt.io/qt-5/qtgloba...debug
http://stackoverflow.com/ques...调试