Results 1 to 2 of 2

Thread: Qt5Script is deprecated?

  1. #1
    Join Date
    Dec 2006
    Posts
    418
    Thanks
    7
    Thanked 18 Times in 17 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Qt5Script is deprecated?

    Hi,

    When I installed Qt5 using qt-unified-windows-x86-3.0.5-online.exe, it says Qt5Script is deprecated. I search around and some people suggest to upgrade to QJSEngine.

    I look at this page http://doc.qt.io/qt-5/topics-scripting.html and it say "Qt Script Module" has rich API and does not mention anything about deprecated, while JS API is limited. Nothing is suggested that JS will replace QtScript.

    Anyone has more information?

    Thanks


    PS. I just notice even when I check Qt5Script module to be installed. There are no script header files got installed so I can't compile my code.
    Last edited by lni; 8th October 2018 at 18:06.

  2. #2
    Join Date
    Feb 2015
    Location
    Poland
    Posts
    27
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows Android

    Default Re: Qt5Script is deprecated?

    Yes Qt Script is deprecated for a long time and probably will be dropped with first stable Qt 6.0 release.
    If you ask: Is this possible to migrate from Qt Script to Qml? I will be reserved about this. I think Qt Quick and Qt Script are entirely different libraries (how ever I can be wrong), and are common only with JavaScript.
    What are headers required by your script?!? Headers are in C/C++ only!

Similar Threads

  1. Was QtService deprecated in Qt4.8
    By learning_qt in forum Qt Programming
    Replies: 1
    Last Post: 8th November 2012, 10:30
  2. QPainterPath set operations deprecated in Qt 4.8
    By ravi.xolve in forum Qt Programming
    Replies: 2
    Last Post: 6th June 2011, 06:15
  3. Deprecated warnings still appear
    By Caius Aérobus in forum Qt Programming
    Replies: 0
    Last Post: 29th March 2010, 08:25
  4. Ubuntu: Wno-deprecated does not work
    By Caius Aérobus in forum Qt Programming
    Replies: 0
    Last Post: 2nd February 2010, 14:08
  5. Replies: 3
    Last Post: 12th August 2007, 02:43

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.