Console output in a Qt GUI app?

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

    First of all you can try flushing the buffer

    std::cout << "Hello, world!"<

    For more Qt based logging you can try using qDebug.

提交回复
热议问题