[Qt-interest] return to command line but the GUI is still alive

KC Jones kc at asperasoft.com
Wed Jan 27 20:12:16 CET 2010


I have not been paying too much attention to this thread, but I am doing
something vaguely similar and taking an entirely different approach.

My app is derived from QtSingleApplication and it accepts 'commands' from
the command line, from drop events on the Mac dock, or any other context
where a 2nd instance of the app can be launched.  QtSingleApplication routes
the command line arguments to the running instance via a message() method.

The class is not without a few cross platform issues, but for the most part
it works well on Win/Mac/linux.  Not sure what its availability is these
days.  We have a full commercial license which gives/gave us access.

On Sun, Jan 24, 2010 at 10:55 AM, Forest Yang <yzine0511 at gmail.com> wrote:

> Hi
>
>  I am writing a simple code to plot some data with QWT, I want it to
> be launched from command line and accept data from a pipe.
> After I type the command, the plotting GUI appears, and return the
> control to shell. The GUI can stay alive until I click the X button
>
> The standard app.exe() will wait until I send quit() to return to
> shell control. But I don't want to wait.
>
> Any thoughts on this ?
>
> Thanks.
>
>
> Forest
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100127/12d796b5/attachment.html 


More information about the Qt-interest-old mailing list