[Qt-interest] Qt app launched from CLI or GUI? Can I know in code?
Jonathan Greig
redteam316 at gmail.com
Wed Jul 27 01:59:46 CEST 2011
Use a command line option to launch the GUI, such as:
MyApp --gui
...and then set your message handler accordingly in code by checking
argc/argv based on which options were used when launching the app.
- Swyped from my droid.
On Jul 26, 2011 12:40 PM, "Konstantin Tokarev" <annulen at yandex.ru> wrote:
26.07.2011, 21:32, "Kishore Jonnalagadda" <kitts.mailinglists at gmail.com>:
> Basically, in my application, I would like to install a message handler
for debug messages so that...
Your "GUI" debug handler is ~/.xsession-errors :)
--
Regards,
Konstantin
_______________________________________________
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/20110726/22fb4723/attachment.html
More information about the Qt-interest-old
mailing list