Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt5: QJSEngine, QObject and slots
Qt 6.11 is out! See what's new in the release blog

Qt5: QJSEngine, QObject and slots

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 2.1k 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.
  • A Offline
    A Offline
    altera_2011
    wrote on last edited by
    #1

    Can the new Qt5 QJSEngine hook signals to javascript functions like the old "javascript engine can":http://doc.qt.digia.com/latest/script-calculator.html?

    I've tried but was not successful I've been studying the Qt5 source code and cannot find this either, but I'm no expert in Qt source code so I could easily have missed it.

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tucnak
      wrote on last edited by
      #2

      Hi, ~altera_2011!

      No. V8 engine (new Qt engine in Qt5) does not support signal-slots with QObjects. But old engine is accessable as add-on.

      Thread I've opened has really clear Tobias's reply: http://qt-project.org/forums/viewthread/21798/

      1 Reply Last reply
      0
      • A Offline
        A Offline
        altera_2011
        wrote on last edited by
        #3

        That's a shame. I guess we'll have to stick with the old engine for now. I've dug around trying to figure out how add slot/signal support but that is entirely non-trivial.

        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