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 disconnect something connected from C++ code
Forum Updated to NodeBB v4.3 + New Features

QtScript disconnect something connected from C++ code

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

    Hi folks,
    I think the title is quite explicit.
    I'm connecting a signal to a slot from my application and would like to disconnect it from a QScript but it looks like I can't do that.
    @Error: Function.prototype.disconnect: failed to disconnect from QAction::triggered()@

    If I connect the same slot to the same signal, I get the connection twice and I'm able do disconnect it only once.
    I tried to pass the QObject to the QScriptEngine with the QScriptEngine::ScriptOwnership flag but it won't help.

    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