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. Passing parameters to an external Qt Script
Forum Updated to NodeBB v4.3 + New Features

Passing parameters to an external Qt Script

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

    Hi,

    I'm new to using QtScript. I've read the "script docs":http://doc.qt.io/qt-5/qtscript-index.html and managed to get a simple external "placeholder" script working. But what I really need to do with this script is to pass in a QBitArray and two integers. Despite reading the docs, I am lost on how to do this.

    My current script that takes no arguments is read using a QFile and QTextStream and placed into a QString, which is then used to construct a QScriptProgram. I call QScriptEngine::evaluate() on this QScriptProgram. But what do I do when I need to pass parameters to my script?

    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