PDA

View Full Version : calling Included JavaScript file in QML



et3rnal
30th August 2011, 18:27
Hi,

http://jscolor.com/try.php

Is it possible to use this JavaScript with QML? is though could some one show me how or make an example please

I tried a lot but didnt work :|

please help or any alternative color picker :confused:

wysota
30th August 2011, 22:20
Is it possible to use this JavaScript with QML?
Not directly. The script requires full web-browser environment (especially the "window" property and getElementByTag) which is what Qt Quick doesn't offer by itself. I'm not even sure what would you like the script to do for a QML application. If you want a color picker then just pop one of those available in Qt or a third-party addition such as wwWidgets.

et3rnal
1st September 2011, 05:23
thanks heaps mate, will try it :), Just new and didnt know about it