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. QtScript future
QtWS25 Last Chance

QtScript future

Scheduled Pinned Locked Moved General and Desktop
8 Posts 6 Posters 5.2k Views
  • 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.
  • 2 Offline
    2 Offline
    2beers
    wrote on last edited by
    #1

    hi everyone. I just read the the following post on the labs blog about qt modules. I currently started an application that is based on a large proportion on qtscript. however I see this today:

    bq. # QtScript
    Overall module state: Active/Maintained
    QScriptEngineAgent and related classes
    State: Deprecated
    Reasoning: flawed design, being replaced by a better design.

    So what do you recommend me? To wait for a better implementation, is this gone be 100% change, or only small changes that will not be so hard to port my application to future versions of qt.

    Thanks in advance

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tobias.hunger
      wrote on last edited by
      #2

      Do you use the QScriptEngineAgent class? That is the one that is deprecated (as I read the text you pasted). The rest of QtScript is active and maintained.

      What exactly are you afraid of?

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

        Just for reference: "this":http://labs.qt.nokia.com/2011/05/12/qt-modules-maturity-level-the-list/ is the blog posting that is being referenced.

        1 Reply Last reply
        0
        • kidproquoK Offline
          kidproquoK Offline
          kidproquo
          wrote on last edited by
          #4

          The list is also now on the "wiki":http://developer.qt.nokia.com/wiki/Qt_Modules_Maturity_Level

          1 Reply Last reply
          0
          • 2 Offline
            2 Offline
            2beers
            wrote on last edited by
            #5

            I'm using "scriptUnload()":http://doc.trolltech.com/main-snapshot/qscriptengineagent.html#scriptUnload

            I'm not afraid, but I'm currently in the begining stage with my project and I'm 100% sure I want to port it to qt 5 when will be ready. That's why I asked?

            1 Reply Last reply
            0
            • A Offline
              A Offline
              andre
              wrote on last edited by
              #6

              QtScript itself is not, and certainly will not be, depreciated. It is a core part of Qt, and needed for QML. If anything, you can expect it to get more love than it used to get. In Qt5, it will be based of the V8 engine, bringing big performance gains.

              1 Reply Last reply
              0
              • jacmoeJ Offline
                jacmoeJ Offline
                jacmoe
                wrote on last edited by
                #7

                QtScript will indeed be deprecated, according to the status of the V8 port: it was abandoned because QtScript exposes too much for it to be feasible to be powered by V8.
                The successor will be minimal and focus on QML.

                At least that's what this says:
                "QTBUG-12503: Evaluate the technical feasibility of using V8 for Qt Script":https://bugreports.qt-project.org/browse/QTBUG-12503

                bq. The conclusion is that it's not feasible. Qt 5 will use Google's V8 JavaScript engine, but the existing QtScript API is not a viable abstraction layer for it. QtScript simply exposes too many implementation details to be reasonably supported on top of V8 (without heavy forking).

                bq. The intent is to introduce a new, minimal Qt/C++ scripting API on top of V8 for Qt 5 that's focused on serving QML/JS integration.

                I am posting this comment for the benefit of other who, like me, found this topic from a Google search. :)

                Less noise - more signal

                1 Reply Last reply
                0
                • C Offline
                  C Offline
                  chuckshaw
                  wrote on last edited by
                  #8

                  Checkout Qt5's QJSEngine. Scripting is not only for QML.

                  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