Results 1 to 2 of 2

Thread: java script function

  1. #1
    Join Date
    Nov 2011
    Location
    coimbatore
    Posts
    80
    Thanks
    1
    Thanked 5 Times in 5 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default java script function

    hi ,

    i have created qml gui....in this file i wrote java script as a function....but it is only enable inside the mouse area...how to use the javascript outside of mousearea...

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: java script function

    like with a property of another element you refer to it by using the other element's id, then dot, then function name
    i.e. the function is like a method of the element you put it into

    Cheers,
    _

Similar Threads

  1. Qml java script
    By ganeshgladish in forum Newbie
    Replies: 6
    Last Post: 7th June 2013, 16:52
  2. Replies: 4
    Last Post: 4th August 2011, 12:47
  3. Replies: 0
    Last Post: 4th August 2011, 11:37
  4. Auto login using java script
    By johnsoga in forum Qt Programming
    Replies: 4
    Last Post: 28th April 2011, 11:06
  5. Java Script on Qt4.5
    By kavinsiva in forum Newbie
    Replies: 1
    Last Post: 7th October 2009, 13:08

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.