[Interest] Blended QProcess/QDesktopServices

Jason H scorp1us at yahoo.com
Tue Feb 28 21:23:54 CET 2012


I never said anything about browsers. :-)

If I have a xls file, and I openUrl() it, I want notification when they close the excel instance. 

It doesn't have to be any common type, just any registered one. I could use Qt Designer and a UI file.
I can invoke the exe as 

qprocess->start(QString("%1 %2).arg(exe).arg(file))

Now you raise the point that in some of these environments, the user can go off on their own and do more and keep working for hours, but that is not my paradigm. I've got a highly synchronous process that they are going through so checking XKCD or /. is out of the question. :-)




________________________________
 From: Bo Thorsen <bo at fioniasoftware.dk>
To: interest at qt-project.org 
Sent: Tuesday, February 28, 2012 2:04 PM
Subject: Re: [Interest] Blended QProcess/QDesktopServices
 
Den 28-02-2012 19:15, Jason H skrev:
> I need to launch a link to a website, which is easily done in
> QDesktopServices.
> I need to know when a process exits whrich is easlily don in QProcess.
>
> I however cannot figure out when a QDesktopServices::openUrl(url) has
> closed/quit etc. Is there a way to figure out what the openUrl() is
> going to open? I figure this will use some kind of ShellExecute (at
> least on windows) but I could also query a MIME type handler database.
> But it seems Qt lacks all those options?

Hi Jason,

That's because you can't know this. If you disagree, answer this question:

When the user has read the page you send them to in the browser, and 
uses the browser to read another page, when do you want to get your signal?

Now, please don't answer it here, because you can't :) I doubt the 
browsers offer it when the user goes to facebook or whatever, so the 
only thing you can see is when it's closed. For my use, that could be 
hours after the application opened the browser.

What you're asking for is somewhere between useless and impossible. Sorry.

Bo Thorsen,
Fionia Software.

-- 

Expert Qt and C++ developer for hire
Contact me if you need expert Qt help
http://www.fioniasoftware.dk
_______________________________________________
Interest mailing list
Interest at qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20120228/211ce990/attachment.html>


More information about the Interest mailing list