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. Making widgets ignore modifiers
Forum Updated to NodeBB v4.3 + New Features

Making widgets ignore modifiers

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

    Dear Forum,

    I am writing an application where keyboard modifiers ALT or CTRL globally put the application in a different mode. When these modifiers are pressed I'd still like the user to be able to use widgets normally. However, entering text in widgets (QDoubleSpinBox) starts to behave weirdly when the modifiers are pressed as they change the input behavior. In summary I'd like to achieve the following:

    1.) Modifiers are always captured globally and not grabbed by the widget (currently I have a root widget with a keyPressEvent() that captures them)

    2.) Widgets behave as if no modifiers (CTRL or ALT) were pressed

    Any hints on how I could achieve this behaviour would be very welcome.

    Thanks,

    Eddy

    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