Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. PySide2 app doesn't capture keyboard input
QtWS25 Last Chance

PySide2 app doesn't capture keyboard input

Scheduled Pinned Locked Moved Unsolved Qt for Python
2 Posts 1 Posters 279 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.
  • Kettle3DK Offline
    Kettle3DK Offline
    Kettle3D
    wrote on last edited by Kettle3D
    #1

    Hello, I'm creating a simple Qt app for the first time, a lock screen that prompts me for a password. But for some reason it won't let me type anything in.

    I have a QLineEdit widget for entering the password, but when I try to type anything in it gets sent to the terminal, not the app, which is focused, full-screened and not decorated by the window manager.

    There is a temporary button at the bottom of the screen so that I can hide the lock screen without typing in my password because I can't, and pressing that button works fine.

    Does anyone know what might be going on here?

    Update:

    Clicking on the text box also doesn't show any indication of focus.


    Ubuntu 20.10 (groovy gorilla), X11, Marco Window Manager (Adaptive compositor), Linux 5.8.0-34-generic #37-Ubuntu SMP Thu Dec 10 18:01:14 UTC 2020 amd64

    Ubuntu 20.10 (groovy gorilla), X11, Marco Window Manager (Adaptive compositor), Linux `5.8.0-34-generic #37-Ubuntu SMP Thu Dec 10 18:01:14 UTC 2020` amd64

    1 Reply Last reply
    0
    • Kettle3DK Offline
      Kettle3DK Offline
      Kettle3D
      wrote on last edited by
      #2

      OK, I found out that the issue has something to do with me using setWindowFlags(Qt.X11BypassWindowManagerHint).

      Does anyone have ideas as to what else to use? (Ideally I don't want an 'X' button on my lock screen, or be able to press Alt+F4 to close it)

      Ubuntu 20.10 (groovy gorilla), X11, Marco Window Manager (Adaptive compositor), Linux `5.8.0-34-generic #37-Ubuntu SMP Thu Dec 10 18:01:14 UTC 2020` amd64

      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