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. Working with Javascripts and QtScriptEngine::importExtension ( const QString & extension )

Working with Javascripts and QtScriptEngine::importExtension ( const QString & extension )

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 767 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.
  • Q Offline
    Q Offline
    Qnoobish
    wrote on last edited by
    #1

    Hello all!!

    I have working with the QtScriptEngine and I've been trying to import some javascripts extensions by using the QtScriptEngine::importExtension ( const QString & extension ) function very well.

    Now what I would like to do is the following....

    I have a extension.js file, that I can import succesfully use the functions defined there and evaluate them with the script engine and all, but now I would like to import another file from within this javascript extension.

    I don't know if this is possible...I've been checking the stuff on QML and the way of importing javascripts by using "import" and "Qt.include"
    but the thing here is that QtQuick is not available in my current implementation.

    Basically I have a function inside this extension.js file and I would like to get some information from an imported file (could a js or anything else).

    Hopefully I explained myself correctly and someone would share some knowledge regarding this topic.

    Thanks in advance!!

    In short, software is eating the world.

    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