Re: [Interest] Accessing undo/redo stack in QPlaintextEdit

2013-07-01 Thread 程梁
QPlainTextEdit do have implemented all features about redo/undo. If this is not suitable for you, you could reimplament it by Qt's Undo framework. Cheng Liang Nanjing, China http://www.devbean.net > Date: Tue, 2 Jul 2013 07:30:26 +0200 > From: wilhelm.me...@fh-kl.de > To: interest@qt-project.or

interest@qt-project.org

2013-07-01 Thread ZHONG Zhu
I got below error "TypeError: cannot call sayHello(): argument 2 has unknown type `QString&' (register the type with qScriptRegisterMetaType())" when execute my Qt program test.exe to call a javascrip file haha.js. What I was trying to do is to return a value ("result") from "void sayHello(const

Re: [Interest] Redirect stdout to a file

2013-07-01 Thread Thiago Macieira
On segunda-feira, 1 de julho de 2013 16.31.19, Yifei Li wrote: > Hi folks, > > I know this can be done using QProcess::setStandardOutputFile. > > However, I need to start my process using the static function > startDetached, and still want to be able to redirect its stdout/stderr to > another fil

Re: [Interest] Redirect stdout to a file

2013-07-01 Thread Scott Aron Bloom
Yes that is exactly what I do.. From: Yifei Li [mailto:yifl...@gmail.com] Sent: Monday, July 1, 2013 7:29 PM To: Scott Aron Bloom Cc: interest@qt-project.org Subject: Re: [Interest] Redirect stdout to a file Hi Scott, What I'm trying to do is exactly the same as what you did. Can you confirm th

Re: [Interest] Redirect stdout to a file

2013-07-01 Thread Yifei Li
Thank you. It's good to know this trick. But I need a cross-platform solution. - Yifei On Mon, Jul 1, 2013 at 7:07 PM, Ing. Rayner Pupo Gomez wrote: > You can try on Linux with "expect", creating a config file for expect that > contains a command like "command >> output.txt" then you can start t

Re: [Interest] Redirect stdout to a file

2013-07-01 Thread Yifei Li
Hi Scott, What I'm trying to do is exactly the same as what you did. Can you confirm the following is how you made it? In my experiment, the following way makes the newly created process terminate when the GUI crashes. QProcess *proc = new QProcess; connect(proc, SIGNAL(readyReadStandardError()

Re: [Interest] Redirect stdout to a file

2013-07-01 Thread Ing. Rayner Pupo Gomez
You can try on Linux with "expect", creating a config file for expect that contains a command like "command >> output.txt" then you can start the expect program detached. ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mai

Re: [Interest] Redirect stdout to a file

2013-07-01 Thread Scott Aron Bloom
Im completely confused on what you are trying to do.. I can tell you that, I have a QProcess variable, and I have attached to the "stdout/stderr available signals".. When they trigger, I get the stdout and stderr And if the GUI crtashes while the CLI call is running, the CLI keeps running. Sco

Re: [Interest] Redirect stdout to a file

2013-07-01 Thread Yifei Li
So is there a way to achieve what I want? -Yifei On Mon, Jul 1, 2013 at 6:15 PM, Scott Aron Bloom wrote: > Yes, calling proc.startDetached still calls the static version > > ** ** > > *From:* Yifei Li [mailto:yifl...@gmail.com] > *Sent:* Monday, July 01, 2013 2:53 PM > *To:* Scott Aron Bloo

Re: [Interest] Redirect stdout to a file

2013-07-01 Thread Scott Aron Bloom
Yes, calling proc.startDetached still calls the static version From: Yifei Li [mailto:yifl...@gmail.com] Sent: Monday, July 01, 2013 2:53 PM To: Scott Aron Bloom Cc: interest@qt-project.org Subject: Re: [Interest] Redirect stdout to a file I just tried, and it does not work. Redirection only work

Re: [Interest] Redirect stdout to a file

2013-07-01 Thread Yifei Li
I just tried, and it does not work. Redirection only works if 'proc->start()'. -Yifei On Mon, Jul 1, 2013 at 5:39 PM, Scott Aron Bloom wrote: > Yes… > > ** ** > > ** ** > > ** ** > > *From:* interest-bounces+scott.bloom=onshorecs@qt-project.org [mailto: > interest-bounces+scott.bloom=

Re: [Interest] Redirect stdout to a file

2013-07-01 Thread Scott Aron Bloom
Yes... From: interest-bounces+scott.bloom=onshorecs@qt-project.org [mailto:interest-bounces+scott.bloom=onshorecs@qt-project.org] On Behalf Of Yifei Li Sent: Monday, July 01, 2013 2:25 PM To: interest@qt-project.org Subject: Re: [Interest] Redirect stdout to a file Hi Scott, Are you

Re: [Interest] Redirect stdout to a file

2013-07-01 Thread Yifei Li
Hi Scott, Are you suggesting something as follows? QProcess proc; proc.setStandardOutputFile(); proc.startDetached(); Yifei On Mon, Jul 1, 2013 at 5:08 PM, Scott Aron Bloom wrote: > If the goal, is to redirect stdout/stderr, and not have the call block > (static startDetached). > > ** *

Re: [Interest] Redirect stdout to a file

2013-07-01 Thread Scott Aron Bloom
If the goal, is to redirect stdout/stderr, and not have the call block (static startDetached). You can still use the NON-static version of the start method Scott From: interest-bounces+scott.bloom=onshorecs@qt-project.org [mailto:interest-bounces+scott.bloom=onshorecs@qt-project.org] O

Re: [Interest] Redirect stdout to a file

2013-07-01 Thread Yifei Li
I guess dup2 needs to be called by the process, correct? But I can't change its src code. - Yifei On Mon, Jul 1, 2013 at 4:42 PM, Guido Seifert wrote: > > If it is only Linux you could use dup2. > > Windows? No idea. > > Guido > > > On Mon, 1 Jul 2013 16:31:19 -0400 > Yifei Li wrote: > > > Hi

Re: [Interest] Redirect stdout to a file

2013-07-01 Thread Scott Aron Bloom
Please don't response personally... One has nothing to do with the other... From: Yifei Li [mailto:yifl...@gmail.com] Sent: Monday, July 01, 2013 1:53 PM To: Scott Aron Bloom Subject: Re: [Interest] Redirect stdout to a file I can't because I want the process continues to run even if my GUI cr

Re: [Interest] Redirect stdout to a file

2013-07-01 Thread Yifei Li
I can't because I want the process continues to run even if my GUI crashes. -Yifei On Mon, Jul 1, 2013 at 4:50 PM, Scott Aron Bloom wrote: > Just use the non-static QProcess flow… > > ** ** > > ** ** > > *From:* interest-bounces+scott.bloom=onshorecs@qt-project.org [mailto: > interest-b

Re: [Interest] Redirect stdout to a file

2013-07-01 Thread Scott Aron Bloom
Just use the non-static QProcess flow... From: interest-bounces+scott.bloom=onshorecs@qt-project.org [mailto:interest-bounces+scott.bloom=onshorecs@qt-project.org] On Behalf Of Yifei Li Sent: Monday, July 01, 2013 1:31 PM To: interest@qt-project.org Subject: [Interest] Redirect stdout t

[Interest] Redirect stdout to a file

2013-07-01 Thread Yifei Li
Hi folks, I know this can be done using QProcess::setStandardOutputFile. However, I need to start my process using the static function startDetached, and still want to be able to redirect its stdout/stderr to another file. Any suggestions? Thanks, Yifei

Re: [Interest] Glueing widgets together

2013-07-01 Thread John Weeks
On 29-Jun-2013, at 4:17 AM, Sensei wrote: > So there's nothing I can do, right? That was my conclusion. -John Weeks ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest

Re: [Interest] Qt Multimedia - Record from Applications Output

2013-07-01 Thread Samuel Gaist
Hi, You might be interested by the Qt Media Encoding Library project. I don't have the link handy, sorry, but it should be the first result of a Google search. Hope it helps On 1 juil. 2013, at 10:17, Lopes Yoann wrote: > Hi, > > This is not something you can do with Qt Multimedia at the m

Re: [Interest] Qt Multimedia - Record from Applications Output

2013-07-01 Thread Lopes Yoann
Hi, This is not something you can do with Qt Multimedia at the moment. Feel free to create a suggestion at https://bugreports.qt-project.org if you would like to see this feature added to Qt in the future. Best regards, Yoann Lopes Senior Software Engineer - Digia, Qt Visit us on: http://qt.di