[Interest] [Development] qDebug()

Igor Mironchik igor.mironchik at gmail.com
Mon Mar 26 07:57:44 CEST 2018


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.io at qt-project.org> on behalf 
> of Igor Mironchik <igor.mironchik at gmail.com>
> *Sent:* Monday, March 26, 2018 7:02:28 AM
> *To:* Alexander Akulich; interest at qt-project.org
> *Cc:* development at 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 at . Please 
>> drop development at qt-project.org <mailto:development at qt-project.org> 
>> in further replies).
>>
>> On Mon, Mar 26, 2018 at 7:36 AM, Igor Mironchik 
>> <igor.mironchik at gmail.com <mailto:igor.mironchik at 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.io at qt-project.org>
>>>     <mailto:development-bounces+timur.pocheptsov=qt.io at qt-project.org>
>>>     on behalf of Igor Mironchik <igor.mironchik at gmail.com>
>>>     <mailto:igor.mironchik at gmail.com>
>>>     *Sent:* Monday, March 26, 2018 6:07:25 AM
>>>     *To:* development at qt-project.org <mailto:development at 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
>>>     Development at qt-project.org <mailto:Development at qt-project.org>
>>>     http://lists.qt-project.org/mailman/listinfo/development
>>>     <http://lists.qt-project.org/mailman/listinfo/development>
>>
>>
>>     _______________________________________________
>>     Development mailing list
>>     Development at qt-project.org <mailto:Development at qt-project.org>
>>     http://lists.qt-project.org/mailman/listinfo/development
>>     <http://lists.qt-project.org/mailman/listinfo/development>
>>
>>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20180326/cdb94898/attachment.html>


More information about the Interest mailing list