Results 1 to 3 of 3

Thread: calling Included JavaScript file in QML

  1. #1
    Join Date
    Jun 2011
    Posts
    8
    Thanks
    4
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows Symbian S60 Maemo/MeeGo

    Exclamation calling Included JavaScript file in QML

    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

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: calling Included JavaScript file in QML

    Quote Originally Posted by et3rnal View Post
    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.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. The following user says thank you to wysota for this useful post:

    et3rnal (1st September 2011)

  4. #3
    Join Date
    Jun 2011
    Posts
    8
    Thanks
    4
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows Symbian S60 Maemo/MeeGo

    Default Re: calling Included JavaScript file in QML

    thanks heaps mate, will try it , Just new and didnt know about it

Similar Threads

  1. Replies: 9
    Last Post: 29th November 2010, 12:12
  2. Reading a file/ and calling another window
    By Gummie in forum Newbie
    Replies: 3
    Last Post: 19th August 2009, 13:07
  3. External Javascript file not loading initially
    By bkudrle in forum Qt Programming
    Replies: 0
    Last Post: 13th March 2009, 17:05
  4. Replies: 1
    Last Post: 25th July 2008, 23:44
  5. Replies: 5
    Last Post: 22nd September 2006, 08:04

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.