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. [Solved] QScriptEngineDebugger - Frontend appears all disabled. Only work keyboard.
Forum Update on Monday, May 27th 2025

[Solved] QScriptEngineDebugger - Frontend appears all disabled. Only work keyboard.

Scheduled Pinned Locked Moved General and Desktop
2 Posts 1 Posters 612 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.
  • L Offline
    L Offline
    lqsa
    wrote on 9 May 2014, 14:04 last edited by
    #1

    Hello,

    When I use the QScriptEngineDebugger, the debugger appears, but all is disabled: menus, buttons, mouse, ... only keyboard works.

    For sample, I can push the F10 key and the debugger responds to it, but I can't click any button, resize panels, select a menu, ...

    @
    QScriptEngine _engine;
    QScriptEngineDebugger debugger;
    debugger.attachTo(&_engine);
    QMainWindow *debugWindow = debugger.standardWindow();
    debugger.action(QScriptEngineDebugger::InterruptAction)->trigger();
    debugWindow->showNormal();
    _engine.evaluate(_program);
    @

    What is happen? Why is the frontend disabled (except keyboard)?

    1 Reply Last reply
    0
    • L Offline
      L Offline
      lqsa
      wrote on 12 Jul 2014, 18:10 last edited by
      #2

      I've found it.

      This happens when launchs the QScriptEngineDebugger from a QDialog. The dialog continues active and catch the mouse and some keys. Only shortcuts works on QScriptEngineDebugger.

      The solution is hide the dialog before QScripEngineDebugger appears.

      I put this code inside a slot launched by a button that appears on the dialog:

      @ QWidget *root = parentWidget();
      while (root->parentWidget() != nullptr) {
      root = root->parentWidget();
      }
      root->setVisible(false);@

      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