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. QShortcut with QWindow not working
Qt 6.11 is out! See what's new in the release blog

QShortcut with QWindow not working

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 294 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.
  • MegamouseM Offline
    MegamouseM Offline
    Megamouse
    wrote on last edited by
    #1

    I just tried to hook up a couple of QShortcuts in Qt 6.4.2.

    It works fine if i connect them to my QMainWindow (which is a QWidget as far as I can tell).
    But if I spawn a QWindow and hook them up with that as parent, None of my shortcuts are activated.

    Does anyone have an idea why this doesn't work?
    The docs explicitly mention QWindow.

    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