Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. QT QScript module not working

QT QScript module not working

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
3 Posts 2 Posters 497 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.
  • Y Offline
    Y Offline
    Youssef3453
    wrote on last edited by
    #1

    I'm having trouble trying to add the QScript module to a project I've created in QtCreator. I've added the script module to my .pro file:

    QT += script xml
    

    However, this gives me the error Project ERROR: Unknown module(s) in QT: script.

    Including any classes from this module is also causing a file not found error:

    #include <QScriptEngine>
    

    Also I checked the Maintenance tool but didn't find QTscript module in it
    alt text

    jsulmJ 1 Reply Last reply
    0
    • Y Youssef3453

      I'm having trouble trying to add the QScript module to a project I've created in QtCreator. I've added the script module to my .pro file:

      QT += script xml
      

      However, this gives me the error Project ERROR: Unknown module(s) in QT: script.

      Including any classes from this module is also causing a file not found error:

      #include <QScriptEngine>
      

      Also I checked the Maintenance tool but didn't find QTscript module in it
      alt text

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Youssef3453 Take a look at https://doc.qt.io/qt-5/qtscript-index.html
      I don't think this module is available in Qt6, even in Qt5 it was only for compatibility with Qt4.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      Y 1 Reply Last reply
      0
      • jsulmJ jsulm

        @Youssef3453 Take a look at https://doc.qt.io/qt-5/qtscript-index.html
        I don't think this module is available in Qt6, even in Qt5 it was only for compatibility with Qt4.

        Y Offline
        Y Offline
        Youssef3453
        wrote on last edited by
        #3

        @jsulm Thank you! I found QJSEngine and it worked

        1 Reply Last reply
        1

        • Login

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