[Qt-interest] startDetached not working for standalone prog
Doug Stewart
doug.dastew at gmail.com
Wed Aug 31 13:13:52 CEST 2011
On Tue, Aug 30, 2011 at 2:26 PM, Andreas Pakulat <apaku at gmx.de> wrote:
> 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.
>
>
Yes you are correct -- we fixed this.
This is our first attempt to learn QT and C++ so there are many things that
are poorly done!
Thanks for your help.
I found out what I was doing wrong:
If I run the code from nautilus (file browser in ubuntu) then the executable
runs fine but octave doesn't,
but if I run it from a terminal then the executable runs fine and octave
runs fine also.
Thanks again!
Doug Stewart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110831/dc194a3e/attachment.html
More information about the Qt-interest-old
mailing list