[Qt-interest] qInstallMessageHandler : widget specific
Sarvesh Saran
Sarvesh.Saran at synopsys.com
Fri Apr 23 16:50:17 CEST 2010
Hi,
Thanks for the reply..Should I then write a custom log handler for my widgets? In order to ensure that all widgets write to the same log, I could provide a singleton logging mechanism.
The problem however is that I am writing a GUI library (no main.cpp) consisting of several widgets. The end is expected to use a subset of these widgets... How do I ensure that all widgets write to the same log file ? ( classes and macros common to all widgets are in common.cpp) I remember reading somewhere that singletons should be avoided in GUI widgets..
Thanks,
Sarvesh
-----Original Message-----
From: qt-interest-bounces at trolltech.com [mailto:qt-interest-bounces at trolltech.com] On Behalf Of Thiago Macieira
Sent: Thursday, April 22, 2010 10:48 PM
To: qt-interest at trolltech.com
Subject: Re: [Qt-interest] qInstallMessageHandler : widget specific
Em Quinta-feira 22. Abril 2010, às 15.33.16, Sarvesh Saran escreveu:
> I have a main widow application with server QWidgets... I would like
> to install a custom message handler (for handling qDebug() messages)
> only on one of these widgets and not the whole application.
That's not possible.
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
Senior Product Manager - Nokia, Qt Development Frameworks
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
More information about the Qt-interest-old
mailing list