Adding website links to application for android.
-
Hello,
WebKit is not available for android currently. I'm looking for different ways to give a link in app. How can ı do this.
Thanks for advance.
-
Hi,
You could use a QLabel to a set HTML text to it.
For eg.
@
new QLabel("<a href='http://www.google.com'>Google</a>");
@
and then connect its signal "linkActivated":http://qt-project.org/doc/qt-4.8/qlabel.html#linkActivated to a slot where you can use "openUrl":https://qt-project.org/doc/qt-5.0/qtgui/qdesktopservices.html#openUrl to launch your URL.On android it should launch the browser.