[Interest] Blended QProcess/QDesktopServices
Bo Thorsen
bo at fioniasoftware.dk
Tue Feb 28 20:04:21 CET 2012
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
More information about the Interest
mailing list