Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Language Bindings
  4. Load an extensions for the QScriptEngine by subclass QScriptExtensionPlugin
Forum Updated to NodeBB v4.3 + New Features

Load an extensions for the QScriptEngine by subclass QScriptExtensionPlugin

Scheduled Pinned Locked Moved Solved Language Bindings
2 Posts 1 Posters 789 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.
  • korut94K Offline
    korut94K Offline
    korut94
    wrote on last edited by korut94
    #1

    Hello everyone,
    this is my first post so I hope to be as clear as possible. I need to load an extension by subclass QScriptExtensionPlugin like the Qt's documentation describes here: Creating Qt Script Extensions. However, I don't understand completely the first way (using QScriptExtensionPlugin) to achieve my goal.

    In the linked page is written that: "QScriptEngine will look for a QScriptExtensionPlugin that provides the relevant extension by querying each plugin for its keys() until a match is found", but the meaning of "look" is not clear to me. How do I make my extension visible to the QScriptEngine? After that the shared library with my extension has been built, what should I do?

    Thank you for any suggestions.

    1 Reply Last reply
    0
    • korut94K Offline
      korut94K Offline
      korut94
      wrote on last edited by korut94
      #2

      I solved the problem!
      Just puts the shared library into a directory named "script", inside the directory where the application binary is placed, and it's done.

      Sorry for the trivial issue :(.

      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