Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. On-Screen Keyboard, QDateTimeEdit, QLineEdit
Qt 6.11 is out! See what's new in the release blog

On-Screen Keyboard, QDateTimeEdit, QLineEdit

Scheduled Pinned Locked Moved Mobile and Embedded
1 Posts 1 Posters 2.6k 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
    samus8zero2x
    wrote on last edited by
    #1

    Hello,

    I am working with an on-screen keyboard widget for our embedded app. I have switched it over to use the KeyEvent system, but I have some issues I need worked out involving the QDateTimeEdit (or QDateEdit or QTimeEdit) and QLineEdit:

    1. If a block of text is highlighted, the key character is placed after the cursor position but the highlighted text block is kept.
    2. With QDateTimeEdit, the selected section does not update properly. Highlighting the number and typing '1' normally displays just a '1,' but with the on-screen keyboard, the number either changes to "00" or "01" and the number is then highlighted.

    I have a feeling some property is lost (such as selected text block) when focus is switched to and from a control. Is there a way to prevent the focus from changing when a key is pressed on the on-screen keyboard? If I set the keyboard and all buttons to "Qt::NoFocus" the focus still lost from the target text widget.

    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