Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Running tests for key events in the background
Forum Updated to NodeBB v4.3 + New Features

Running tests for key events in the background

Scheduled Pinned Locked Moved QML and Qt Quick
1 Posts 1 Posters 560 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.
  • _ Offline
    _ Offline
    _che_
    wrote on last edited by
    #1

    Hi all,

    we are currently writing unit tests using QML TestCase and have found that simulated key events (using keyPress etc.) require the test window to be the active window. This problem actually exists for all key events created with the QTest class. We plan to run several instances of our application for acceptance tests in parallel to increase performance on multiple cores, but this would make all tests for key input fail.

    Is there a way to make this work, e.g. by decoupling the active state of the window from the QML scene's focus chain?

    Best,
    Carsten

    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