[Qt-interest] console application possibly opening a gui

Alexander Poddey alexander.poddey at gmx.net
Wed Aug 19 16:12:37 CEST 2009


Hi all,

I plan to implement a tool which should both, be able to be usable from 
command-line and possibly open a gui.

tool -do this    //operates without window
tool gui //opens a gui which allows to do the operations interactively

how about situations without access to window manager?

I would like to be able to use the command-line stuff and print a warning for 
the gui-part

what's the best practice to do this?
use a QCoreApplication and somehow determine if one has a windowmanager?

any hint appreciated
alex



More information about the Qt-interest-old mailing list