Simple:
#include <QApplication> #include <QWidget> #include <QDebug> #include
<QTimer> #include <QTextStream> class Obj : public QWidget {
Q_OBJECT public: Obj() {} ~Obj() {} public slots:
void start() { show(); QTextStream st( stdout );
st << "QTextStream works..."; qDebug() << "Started and
stopped."; } }; int main( int argc, char ** argv ) {
QApplication app( argc, argv ); Obj o; QTimer::singleShot( 0,
&o, &Obj::start ); return app.exec(); } #include "main.moc"
Produces:
Starting /home/igor/Tmp/build-debug-Qt_5_10_0_qt5-Debug/debug...
QTextStream works...
/home/igor/Tmp/build-debug-Qt_5_10_0_qt5-Debug/debug exited with code 0
But it's so only with Qt built from sources (5.11 branch)...
On 26.03.2018 08:50, Timur Pocheptsov wrote:
Have you tried creating an empty qtlogging.ini (as suggested on
stackowerflow)?
Best regards,
Timur.
------------------------------------------------------------------------
*From:* Development
<development-bounces+timur.pocheptsov=qt...@qt-project.org> on behalf
of Igor Mironchik <igor.mironc...@gmail.com>
*Sent:* Monday, March 26, 2018 7:02:28 AM
*To:* Alexander Akulich; interest@qt-project.org
*Cc:* developm...@qt-project.org
*Subject:* Re: [Development] qDebug()
On 26.03.2018 07:50, Alexander Akulich wrote:
Hello Igor,
Does the linked solution help? See also comment #2 at
https://bugs.launchpad.net/ubuntu/+source/qtbase-opensource-src/+bug/1731646
<https://bugs.launchpad.net/ubuntu/+source/qtbase-opensource-src/+bug/1731646>
(referenced in the stackoverflow answer).
No, this solution didn't help. I guess that there is another reason.
(The subject question belongs to interest@, not development@. Please
drop developm...@qt-project.org <mailto:developm...@qt-project.org>
in further replies).
On Mon, Mar 26, 2018 at 7:36 AM, Igor Mironchik
<igor.mironc...@gmail.com <mailto:igor.mironc...@gmail.com>> wrote:
Hi,
On 26.03.2018 07:33, Timur Pocheptsov wrote:
On which platform is it? Are you sure it's 5.11 only?
I'm on Kubuntu 16.04. It is on 5.10 and 5.11 build from sources
by myself.
See, for example, the solution proposed here:
https://stackoverflow.com/questions/48474897/qt-qdebug-stopped-to-work-no-more-printing-to-console-after-upgrading-to-ubu
<https://stackoverflow.com/questions/48474897/qt-qdebug-stopped-to-work-no-more-printing-to-console-after-upgrading-to-ubu>
<https://stackoverflow.com/questions/48474897/qt-qdebug-stopped-to-work-no-more-printing-to-console-after-upgrading-to-ubu>
QT qDebug() stopped to work (no more printing to console ...
<https://stackoverflow.com/questions/48474897/qt-qdebug-stopped-to-work-no-more-printing-to-console-after-upgrading-to-ubu>
stackoverflow.com <http://stackoverflow.com>
After upgrading from Ubuntu 17.04 to 17.10, the QT qDebug()
macro stopped working and no longer displays the messages on the
console. How can the debug output be re ...
Best regards,
Timur.
------------------------------------------------------------------------
*From:* Development
<development-bounces+timur.pocheptsov=qt...@qt-project.org>
<mailto:development-bounces+timur.pocheptsov=qt...@qt-project.org>
on behalf of Igor Mironchik <igor.mironc...@gmail.com>
<mailto:igor.mironc...@gmail.com>
*Sent:* Monday, March 26, 2018 6:07:25 AM
*To:* developm...@qt-project.org <mailto:developm...@qt-project.org>
*Subject:* [Development] qDebug()
Hello,
Built sources from git repository (5.11 branch) doesn't print
qDebug()
messages to console. What I missed during the configuration process?
Thank you.
_______________________________________________
Development mailing list
developm...@qt-project.org <mailto:developm...@qt-project.org>
http://lists.qt-project.org/mailman/listinfo/development
<http://lists.qt-project.org/mailman/listinfo/development>
_______________________________________________
Development mailing list
developm...@qt-project.org <mailto:developm...@qt-project.org>
http://lists.qt-project.org/mailman/listinfo/development
<http://lists.qt-project.org/mailman/listinfo/development>
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest