Console output in a Qt GUI app?

前端 未结 17 1774
星月不相逢
星月不相逢 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

    First of all, why would you need to output to console in a release mode build? Nobody will think to look there when there's a gui...

    Second, qDebug is fancy :)

    Third, you can try adding console to your .pro's CONFIG, it might work.

提交回复
热议问题