Console output in a Qt GUI app?

前端 未结 17 1787
星月不相逢
星月不相逢 2020-11-28 07:06

I have a Qt GUI application running on Windows that allows command-line options to be passed and under some circumstances I want to output a message to the console and then

17条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-11-28 07:50

    Oh you can Output a message when using QT += gui and CONFIG += console.

    You need printf("foo bar") but cout << "foo bar" doesn't works

提交回复
热议问题