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. OnKeyDown event (key down -> scroll down)

OnKeyDown event (key down -> scroll down)

Scheduled Pinned Locked Moved QML and Qt Quick
4 Posts 3 Posters 4.6k 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.
  • P Offline
    P Offline
    pascal95abc
    wrote on 26 Feb 2012, 16:27 last edited by
    #1

    Hello.

    How to implement an onkeydown event.

    I didnt find one, there is nothing starting with OnKey...

    Thank you

    Qt 4.7.3
    Symbian OS v9.4 / Symbian^1, S60 5th Edition
    on N97

    1 Reply Last reply
    0
    • L Offline
      L Offline
      leon.anavi
      wrote on 26 Feb 2012, 17:28 last edited by
      #2

      Have you tried to use "onPressed":http://doc.qt.nokia.com/4.7-snapshot/qml-keys.html#onPressed-signal ?

      http://anavi.org/

      1 Reply Last reply
      0
      • P Offline
        P Offline
        pascal95abc
        wrote on 26 Feb 2012, 17:58 last edited by
        #3

        And how to determine what key was pressed ?

        if KEY == ??? {
        ...

        Qt 4.7.3
        Symbian OS v9.4 / Symbian^1, S60 5th Edition
        on N97

        1 Reply Last reply
        0
        • T Offline
          T Offline
          task_struct
          wrote on 26 Feb 2012, 18:54 last edited by
          #4

          Here is an example http://doc.qt.nokia.com/4.7-snapshot/qml-keyevent.html

          Also there is "onDownPressed signal":http://doc.qt.nokia.com/4.7-snapshot/qml-keys.html#onDownPressed-signal

          "Most good programmers do programming not because they expect to get paid or get adulation by the public, but because it is fun to program."

          • Linu...
          1 Reply Last reply
          0

          3/4

          26 Feb 2012, 17:58

          • Login

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