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. QtScript and restricting IOScr
Forum Update on Monday, May 27th 2025

QtScript and restricting IOScr

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 465 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.
  • R Offline
    R Offline
    RudolfVonKrugstein
    wrote on 1 Jul 2015, 17:59 last edited by
    #1

    Hi,

    I need scripting in my Qt App and since I am already using Qt, it makes sense to use QtScript.
    But the script is handling sensitive data and can be potentially be written by a third person. For that reason I require that no data may be send to the outside except by functions which I define.
    So now writing to files, no connecting to the internet, no (something I do not think of right now).

    Is it possible to restrict the QtScript interpreter in this way? For example by not loading some libraries or so?

    Thanks!
    Nathan

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SysTech
      wrote on 2 Jul 2015, 22:34 last edited by
      #2

      I'm not sure this is the right approach but you could provide your own interface functions (overrides so to speak) for the common things you want to prevent. Those overwrites would still allow the script to run but you'd intercept and not allow the desired action or perhaps throw a script exception.

      1 Reply Last reply
      0

      1/2

      1 Jul 2015, 17:59

      • Login

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