Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Execute javascript function in 'State'
Forum Updated to NodeBB v4.3 + New Features

Execute javascript function in 'State'

Scheduled Pinned Locked Moved QML and Qt Quick
4 Posts 3 Posters 5.7k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    lunatic
    wrote on last edited by
    #1

    e.g. I have a widget which has some 'State's.

    When the State changes I will call the js function, but how?
    @
    function returnTrue() {
    return true;
    }
    // ...
    State {
    name: "..."
    // How can I call the js function 'returnTrue()' ?
    }
    @

    1 Reply Last reply
    0
    • K Offline
      K Offline
      komar_rus
      wrote on last edited by
      #2

      http://doc.qt.nokia.com/4.7/qml-statechangescript.html

      1 Reply Last reply
      0
      • I Offline
        I Offline
        Immii
        wrote on last edited by
        #3

        [quote author="komar_rus" date="1293379905"]http://doc.qt.nokia.com/4.7/qml-statechangescript.html[/quote]

        Please always put the links using link icon .

        1 Reply Last reply
        0
        • K Offline
          K Offline
          komar_rus
          wrote on last edited by
          #4

          "Please look here":http://doc.qt.nokia.com/4.7/qml-statechangescript.html

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved