QDesktopServices::openUrl - Problem
Hi guys,
I can't get the service "QDesktopServices::openUrl" always work (in every Pcs..)
I basically use the following code:
Code:
QUrl urlEncoded
= QUrl::fromEncoded(mY_url.
toAscii());
QUrl url
(urlEncoded.
toString());
Sometimes "isURLopened" is 0 and the page is not open..
I would like to ask you if there is something wrong with the code above..
and what I can try to solve the problem.
many Thanks
Roby
PS:
to be precise mY_url is:
https://sis-bankpass.ssb.it/bankpass...pc-servizi.com
Re: QDesktopServices::openUrl - Problem
There's a pretty big chance of me being wrong :o but could it be because of https...if you try open google,it opens as http://www.google.com but if you try some secure network site it opens as https://......so,maybe that's creating the problem.Also is the 'toascii' and 'fromencoded' needed for 'https'?I tried opening 'orkut' using QDesktopService a few months back.It was a one line code.I didn't use 'fromencoded' and 'toascii'....ofcourse they might be used for secure networks.
Re: QDesktopServices::openUrl - Problem
Thanks for your reply..
So you mean I should directly try something like:
even if "mY_url" is in an encoded form ??
Re: QDesktopServices::openUrl - Problem
Is QDesktopServices::openUr the right way to open https URL ??
does another better way to do the work exist?
Thx,
robby
Re: QDesktopServices::openUrl - Problem
Quote:
Originally Posted by
rmagro
Thanks for your reply..
So you mean I should directly try something like:
even if "mY_url" is in an encoded form ??
yes, u dont need to change anything, this will work..Also, what are you trying to do with this url..does ur application require to JUST open this url in a browser or does your application wants to do smth with this url?
Re: QDesktopServices::openUrl - Problem
Yes, I'm only trying to open this url in a browser...
I don't understand why in some computers it returns "0", not opening the web page..
Thx
Roby..
Re: QDesktopServices::openUrl - Problem
Re: QDesktopServices::openUrl - Problem
computers with windows xp on board, but maybe where the a firewall block 443 https port..
(??)
Re: QDesktopServices::openUrl - Problem
umm..i dont think it should be the firewall, even if it is, it should at least open the browser? did u try to debug it? is it going till launchWebBrowser()?