Results 1 to 4 of 4

Thread: Seeking advise on the QtScript replacement

  1. #1
    Join Date
    Nov 2009
    Location
    US, Midwest
    Posts
    215
    Thanks
    62
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Seeking advise on the QtScript replacement

    AFAIK qtScript will be deprecated starting with 5.6. I am about to start large scripting part of the project I am working on. I'll appreciate an opinion on what should I use as replacement for QtScript. Lua? QtQuick? Py?

    Thanks.

  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: Seeking advise on the QtScript replacement

    QtQuick is a UI module, you probably meant QML.

    QQmlEngine is a good candidate when you need the script to interact with the Qt applications, see
    https://www.youtube.com/watch?v=7LsKoVrb8C8 for example.

    Cheers,
    _

  3. The following user says thank you to anda_skoa for this useful post:

    TorAn (5th November 2015)

  4. #3
    Join Date
    Nov 2009
    Location
    US, Midwest
    Posts
    215
    Thanks
    62
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Seeking advise on the QtScript replacement

    Thank you for the reply. I would like to know what are the benefits and issues with the solutions that are available - QmlEngine, PyQt, Lua, perhaps others? May be someone already did such an analysis?

    Thanks.

  5. #4
    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: Seeking advise on the QtScript replacement

    QQmlEngine obviously has the advantage of being part of Qt andbeing primarily developed for use with Qt's object system.
    So it understands Qt types, signals/slots, etc.

    Python's advantage is that it has its own class library and tons of bindings to other libraries.
    Obviously that could be a disadvantage if the scripts should not have access to all of that.

    Lua is a very common scripting solution so there should be lots of examples on the Internet.
    Just never heard of a special adapter for Qt, so maybe there is none yet, or they are just not well know.

    Cheers,
    _

Similar Threads

  1. Replacement for QTimer?
    By SKolaMunn in forum Qt Programming
    Replies: 4
    Last Post: 17th October 2011, 16:55
  2. Replies: 0
    Last Post: 25th November 2009, 07:46
  3. Replacement for CMapStringToPtr
    By rajeshs in forum Newbie
    Replies: 3
    Last Post: 21st December 2007, 12:25
  4. Replacement for MESSAGE_MAP()
    By krishbhala in forum Qt Programming
    Replies: 2
    Last Post: 4th December 2007, 15:20
  5. Replacement of Images
    By merry in forum Qt Programming
    Replies: 5
    Last Post: 1st March 2007, 10:16

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.