Open link in default browser?
-
It will work on symbian, but it is not qml-way, if you need it (if you asked about standard non-qml way then thread should be moved)
-
[quote author="Denis Kormalev" date="1310021884"]It will work on symbian, but it is not qml-way, if you need it (if you asked about standard non-qml way then thread should be moved)[/quote]
Well I can use signals, but if there is a straight way from QML, that would always be better :)
-
May be this would help;
http://doc.qt.nokia.com/latest/qml-qt.html#openUrlExternally-method
-
[quote author="situ117" date="1310029012"]May be this would help;
http://doc.qt.nokia.com/latest/qml-qt.html#openUrlExternally-method[/quote]
That doesn't open in default browser
-
I don't know if this is old, but I always use this in my apps, I have the textBrowser widget in my .ui file,
then I'll put this code in my constructor
// set up the pages on textbrowser to open in external browser ui->textBrowser->setOpenLinks(1); ui->textBrowser->setOpenExternalLinks(1);
and don't forget also to put a check on link accessible by mouse and open external links and open links and also link accessible by keyboard, to set this things select the textBrowser in your .ui file and you'll find the settings on the right side find these three things.
This works for me best. :) Hope it helps.
-
[quote author="jkosonen" date="1310031715"]
That doesn't open in default browser[/quote]Are you sure? Docs are saying that it should
-
[quote author="Denis Kormalev" date="1310679893"]
[quote author="jkosonen" date="1310031715"]
That doesn't open in default browser[/quote]Are you sure? Docs are saying that it should
[/quote]
Well, not in my app anyway...
QDesktopServices::openUrl() didn't work either -
Hi,
I have managed to start Nokia's built in web browser on Nokia C7 using QDesktopServices::openUrl()
I guess that is the default browser on Nokia mobile phone.I was wondering how to close the Qt app afterwards?
I have tried using
QAplication::quit();
or
QAplication::exit();but it didn't work.
-
Hi,
I have found a solution to my question from above. It seems you cannot call QApplication::exit() from the constructor, and I was doing that :/ Since I needed the Qt app only to launch external WebBrowser on the Symbian phone and then wished to quit the app I have put the app.quit(); into the main.cpp. I had to comment out return app.exec(); -
Sounds like a bug to me, please report it at http://bugreports.qt.nokia.com .
-
I think it is already known bug. I have googled this out
https://bugreports.qt.nokia.com//browse/QTBUG-8336It says here it is solved in version 4.7.0. I have just downloaded QT SDK 1.1.3. from http://www.developer.nokia.com/Develop/Qt/Tools/
It is released 01 September 2011
Why the hell don't they just say what version of QT is in there?Anyways I have written the same code using this QT SDK 1.1.3 and my problem is still present. I Guess it is not solved then?