qt printing to terminal

后端 未结 4 1986
深忆病人
深忆病人 2021-01-27 12:09

In my QT application, I want to have it so some real-time information prints in the terminal if I run the application from the terminal.

When I use printf(\"print this\"

4条回答
  •  心在旅途
    2021-01-27 12:30

    You can use qDebug() << ..., qWarning() << ..., etc. Don't forget to include .

    Docs: QDebug

提交回复
热议问题