[Qt-interest] startDetached not working for standalone prog
Andreas Pakulat
apaku at gmx.de
Tue Aug 30 20:26:29 CEST 2011
On 30.08.11 13:08:11, Doug Stewart wrote:
> On Tue, Aug 30, 2011 at 12:24 PM, Jason H <scorp1us at yahoo.com> wrote:
>
> > My knee-jerk reaction is to say getOctavePath() is not working the same.
> > Are your relying on an environment variable and not set it?
> >
> > You always compile it. Here's what to try:
> > Run in creator (Debug) I assume this works?
> > Run in creator (Release) I assume this works?
> > Run outside creator (Debug) I assume this fails?
> > Run outside creator (Release) I assume this fails?
> >
> >
> getOctavePath() is always working It starts octave from all 4 of
> your scenarios.
>
> The last 2 options Octave starts up and shows the correct graph and then
> closes.
>
> The commands to octave are Identical.
>
> The code is at:
>
> http://code.google.com/p/fuzzy-teaching-demo/
>
> I am running in Ubuntu
Since you didn't even say which of the numerous files there has the
qprocess-related code I've created a rather simplistic example app and
attached it. It just starts designer with an argument via startDetached.
If that does not work for you somethings broken in your Qt indeed, if it
works then adjust it to make it more similar to the real code until it
breaks and tell us which change broke it.
Note also that startDetached is a static member function of QProcess, so
calling it on an instance like in your original mail does not make any
sense.
Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: main.cpp
Type: text/x-c++src
Size: 146 bytes
Desc: not available
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110830/98f2a2d5/attachment.bin
More information about the Qt-interest-old
mailing list