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. Numeric keypad doesn't work
Qt 6.11 is out! See what's new in the release blog

Numeric keypad doesn't work

Scheduled Pinned Locked Moved General and Desktop
5 Posts 3 Posters 3.7k 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.
  • S Offline
    S Offline
    skylendar
    wrote on last edited by
    #1

    Hi there and thx for reading and answering this post.

    As you know, you can create QAction with shortcuts.

    auto xy = new QAction("blah blah");
    xy->setShortcut(QKeySequence(Qt::Key_Plus));

    you can of course activate xy by pressing the + key on the main keyboard, but it doesn't work with the + key from the numeric keypad, nor do the - * / and the digit work.

    Is it a bug ?

    Ah, and I forgot to mention that the + for the numeric keypad works with a QLineEdit and any other text tool with or without qt.

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tucnak
      wrote on last edited by
      #2

      Hey!

      I am afraid that at the moment that doesn't seem to be possible. By the way, there is already an opened issue on https://bugreports.qt-project.org/browse/QTBUG-2913. On the other hand it's attached to an inactive Nokia identity, so you should re-open a duplicate for this thing in case if you are interested.

      Hope I helped you at least a little.

      1 Reply Last reply
      0
      • S Offline
        S Offline
        skylendar
        wrote on last edited by
        #3

        ok, so...

        1 Reply Last reply
        0
        • T Offline
          T Offline
          tucnak
          wrote on last edited by
          #4

          Well, numpad works for input classes cos they basically do override keyReleaseEvent, which is sensible to numbpad keys. In case of QAction it's not a case.

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            Hi,

            Voting the feature request is the right thing to do, the Assignee is the one who got the task and in this case it's an active developer. The reporter is the one who opened it,

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            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