qt-interest@trolltech.com
[Top] [All Lists]

Re: how to pass parameters for a process that is already running

Subject: Re: how to pass parameters for a process that is already running
From: "Volker Hilsheimer"
Date: Tue, 1 Feb 2005 13:25:01 +0100
In the end of the day this depends very much on the software you use to
display your help files. You might want to check QtSingleApplication if
you write your own software to display your help files, and of course
QAssistantClient in case you use Qt Assistant.

Volker

"deepa" <deepa@xxxxxxxxxx> wrote in message
news:ctnqff$n0$1@xxxxxxxxxxxxxxxxxxxxx
> hai
>
> I have an application and a help system.
>
> I have created a process for displaying the help system on some help
button
> click event. The name of the file that is displayed is passed as a
> parameter.
> Now, at some point of time i want to see another help file, how do i
pass
> the file name so that the help system displays the currently passed file
> name.
> How to achieve it?
>
> Hope I am clear in explaining.
>
> Regards
> Deepa
>
>
> ----- Original Message -----
> From: "Andy Bell" <andy@xxxxxxxxxxxx>
> To: <zhaowu_luoparis@xxxxxxxxxxx>
> Cc: "qtinterest" <qt-interest@xxxxxxxxxxxxx>
> Sent: Tuesday, February 01, 2005 3:56 PM
> Subject: Re: how to pass command line parameters with Qt?
>
>
> > Hi,
> > You can access command line params from within your main function:
> > int main(int argc, char * argv[])
> > argc - number of arguments
> > argv[] - array of aruments
> > so:
> > for(int i=0; i < argc; i++)
> > {
> > cout << "argv[" << i << "] is:" << argv[i] << '\n';
> > }
> >
> > Andy
> > On Tue, 2005-02-01 at 10:48 +0100, Luo Zhaowu wrote:
> > > Hi, every body:
> > >
> > > My program takes float variable values as input. Assuming my binary
file
> is
> > > go, and the possible values for one of float variables could be 1.5,
> 2.5,
> > > 3.5.  I want to change one value of the variable to the other on
command
> > > line (after qmake project, qmake, and make of all source files),
doing
> > > something like:
> > > go  1.5
> > > or go 2.5
> > > or go 3.5
> > >
> > > rather than compiling all the source file three times, generating
three
> > > binary files, each for one of the three values.
> > >
> > > Could anybody please tell me how to implement the above command line
> > > parameter list with Qt?
> > >
> > > Thanks a lot in advance,
> > >
> > > Zhaowu Luo
> > >
> > > _________________________________________________________________
> > > Express yourself instantly with MSN Messenger! Download today it's
FREE!
> > > http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
> > >
> > > --
> > > List archive and information:
http://lists.trolltech.com/qt-interest/
> > --
> >
> > --
> > List archive and information: http://lists.trolltech.com/qt-interest/
> >

--
List archive and information: http://lists.trolltech.com/qt-interest/

<Prev in Thread] Current Thread [Next in Thread>