Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Reimplementing keyPressEvent for TextInput?
Forum Updated to NodeBB v4.3 + New Features

Reimplementing keyPressEvent for TextInput?

Scheduled Pinned Locked Moved QML and Qt Quick
2 Posts 2 Posters 1.0k 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.
  • H Offline
    H Offline
    hjlee
    wrote on last edited by
    #1

    Hi, is there a way to reimplement key press signal for TextInput in QML just like C++ keyPressEvent(QKeyEvent *event) for QLineEdit?

    I tried Keys.onPressed but no matter what I do it still inserted key at the end.

    Thanks in advance for help.

    1 Reply Last reply
    0
    • A Offline
      A Offline
      AcerExtensa
      wrote on last edited by
      #2

      You can always create your own widget and export it to QML.... I don't think it is possible to reimplement functions on existing QML-Widgets etc...

      God is Real unless explicitly declared as Integer.

      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