On Monday, 14 January 2019 11:57:46 PST Jason H wrote:
> qWarning() does not require <QtDebug>, it is provided via <QtGlobal>. Only
> qDebug() stream operator syntax requires the #include
> http://doc.qt.io/qt-5/debug.html
> "If you include the <QtDebug> header file, the qDebug() macro can also be
> used as an output stream."

To be clear:

        qDebug("foo");

only requires <qglobal.h>, but

        qDebug() << "foo";

requires <QDebug>

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center



_______________________________________________
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest

Reply via email to