[Qt-interest] Qt app launched from CLI or GUI? Can I know in code?
Kishore Jonnalagadda
kitts.mailinglists at gmail.com
Wed Jul 27 06:38:16 CEST 2011
On Jul 27, 2011 9:48 AM, "Chris Vickery" <chrisinajar at gmail.com> wrote:
>
> You could also always just output to both...
Thanks. I think this would be the best compromise.
> On Tue, Jul 26, 2011 at 1:32 PM, Kishore Jonnalagadda
> <kitts.mailinglists at gmail.com> wrote:
> > Basically, in my application, I would like to install a message handler
for
> > debug messages so that they are logged to a file. However, I would like
to
> > do so only if the app were launched from the GUI. So in case the app was
> > launched from the CLI, it should output to the terminal as usual.
> >
> > Is this possible? Particularly on a linux machine.
> >
> > Kishore
> >
> > _______________________________________________
> > Qt-interest mailing list
> > Qt-interest at qt.nokia.com
> > http://lists.qt.nokia.com/mailman/listinfo/qt-interest
> >
> >
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110727/67199634/attachment.html
More information about the Qt-interest-old
mailing list