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. QML Keys.onPressed not working in Android
Forum Updated to NodeBB v4.3 + New Features

QML Keys.onPressed not working in Android

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
6 Posts 2 Posters 2.2k Views 2 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.
  • C Offline
    C Offline
    Cinohee
    wrote on last edited by
    #1

    Hello
    this is simple key event in QML
    This event worked in Windows build but not working in Android

    MyTextArea{
        id: textArea
        property int row : 0
        property int maxLength: 3
        Keys.onPressed: {
            **some code here **
        }
    }
    

    Keys.onPressed never rise in android but perfect work in windows

    Is it QML bug?
    Qt version 5.9

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      Yes, sounds like a bug.

      (Z(:^

      1 Reply Last reply
      0
      • C Offline
        C Offline
        Cinohee
        wrote on last edited by
        #3

        @sierdzio said in QML Keys.onPressed not working in Android:

        Yes, sounds like a bug.

        How I can fix this?

        1 Reply Last reply
        0
        • sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #4

          Sorry, if I knew I would have told you.

          Definitely you should report it on the bug tracker. A similar one seems to be present (and not fixed) since 5.3... :-(

          Others report that onPressed is working for them.

          Are you sure your text area has focus?

          (Z(:^

          C 1 Reply Last reply
          0
          • sierdzioS sierdzio

            Sorry, if I knew I would have told you.

            Definitely you should report it on the bug tracker. A similar one seems to be present (and not fixed) since 5.3... :-(

            Others report that onPressed is working for them.

            Are you sure your text area has focus?

            C Offline
            C Offline
            Cinohee
            wrote on last edited by
            #5

            @sierdzio said in QML Keys.onPressed not working in Android:

            Sorry, if I knew I would have told you.

            Definitely you should report it on the bug tracker. A similar one seems to be present (and not fixed) since 5.3... :-(

            Others report that onPressed is working for them.

            Are you sure your text area has focus?

            This event work on windows and also some devices but not all devices

            sierdzioS 1 Reply Last reply
            0
            • C Cinohee

              @sierdzio said in QML Keys.onPressed not working in Android:

              Sorry, if I knew I would have told you.

              Definitely you should report it on the bug tracker. A similar one seems to be present (and not fixed) since 5.3... :-(

              Others report that onPressed is working for them.

              Are you sure your text area has focus?

              This event work on windows and also some devices but not all devices

              sierdzioS Offline
              sierdzioS Offline
              sierdzio
              Moderators
              wrote on last edited by
              #6

              @Cinohee said in QML Keys.onPressed not working in Android:

              @sierdzio said in QML Keys.onPressed not working in Android:

              Are you sure your text area has focus?

              This event work on windows and also some devices but not all devices

              wow, that's proper weird.

              Maybe some Qt devs on Qt Interest mailing list could help?

              (Z(:^

              1 Reply Last reply
              1

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved