Thread
:
Opening web link from QML (QT Quick)
View Single Post
Slocan
2011-02-21 , 17:14
Posts: 324 | Thanked: 371 times | Joined on Dec 2009 @ Vancouver, BC
#
2
You'd need to either:
- create a C++ object with the required function, and declare it to your QML script so you can call that function
- emit a signal in QML, and link it to a slot in your C++ classes
Or more easily, use :
http://doc.trolltech.com/4.7/qml-qt....ernally-method
so, just replace what you had with:
Qt.openUrlExternally(link)
Quote & Reply
|
The Following 2 Users Say Thank You to Slocan For This Useful Post:
alynsparkes
,
marmistrz
Slocan
View Public Profile
Send a private message to Slocan
Find all posts by Slocan