Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to trigger a virtual keyboard when click into a QSpinBox?
Qt 6.11 is out! See what's new in the release blog

How to trigger a virtual keyboard when click into a QSpinBox?

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 285 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.
  • F Offline
    F Offline
    FlyingMagnus
    wrote on last edited by FlyingMagnus
    #1

    I am developing a qt software running on windows device with touchable screen. When I touch a QLineEdit, a virtual keyboard was automatically triggered. But when I touch a QSpinBox, virtual keyboard does not show. How to modify QSpinBox to make it behave like a QLineEdit?

    1 Reply Last reply
    0
    • F Offline
      F Offline
      FlyingMagnus
      wrote on last edited by
      #2

      It seems to be a bug. Reported 2 years ago. https://qt-project.atlassian.net/browse/QTBUG-127124

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

        you could subclass QSpinBox to allow you to catch focus events and trigger vkbd

        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
        • Unsolved