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. Debugging item failing to receiving focus with QT_QPA_PLATFORM=offscreen
Forum Updated to NodeBB v4.3 + New Features

Debugging item failing to receiving focus with QT_QPA_PLATFORM=offscreen

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

    I have a unit test that fails to force keyboard focus on a text input when QT_QPA_PLATFORM = offscreen despite the item having a valid rectangle, being visible, enabled, and trying a mouse click, forceActiveFocus(), and setFocus(). The test passes when not using the “offscreen” platform. Needless to say, this is very difficult to debug.

    One idea I had was to see if another item was blocking the item (although it should still receive focus with forceActiveFocus()). Does anyone have any idea how to do this?

    Or any other idea how to debug this?

    My code is too complex and too interlinked with my python code to put an example in here.

    https://alaskafamilysystems.com/

    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