×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor
    Join Date
    Feb 2009
    Location
    India
    Posts
    123

    KeyPad Navigation

    Hi ,

    I have developed an application in which i am using setNavigationMode(Qt::NavigationModeCursorAuto) . So when application is running I can get mouse cursor .
    Now what i want to do is move this cursor with the help of keypad.For EX using 2,6,8,4 keys .So is this possible in Qt ??.If yes can anyone guide me on this issue..

    Regards,
    Vishal

  2. #2
    Super Contributor
    Join Date
    Oct 2008
    Location
    INDIA
    Posts
    2,326

    Re: KeyPad Navigation

    Quote Originally Posted by vishalrocks101 View Post
    Hi ,

    I have developed an application in which i am using setNavigationMode(Qt::NavigationModeCursorAuto) . So when application is running I can get mouse cursor .
    Now what i want to do is move this cursor with the help of keypad.For EX using 2,6,8,4 keys .So is this possible in Qt ??.If yes can anyone guide me on this issue..

    Regards,
    Vishal

    Well , it's good that you get the mouse curser in your screen,,

    NOw connect your keypad buttons with that curser ,
    Using Signal and Slot mechanism,, Search Signal and slot article in the Wiki.
    When 2 is pressed go upward movement to the curser,
    When 4 is pressed go left side,
    When 6 is pressed go right side,
    When 8 is pressed, go download.

    Best regards,

  3. #3
    Nokia Developer Moderator
    Join Date
    Oct 2009
    Posts
    4,326

    Re: KeyPad Navigation

    You may re-implement keyPressEvent to get key events from 2,6,8,4 keys.
    http://doc.qt.nokia.com/4.6/qwidget.html#keyPressEvent
    There is an example in wiki also
    http://wiki.forum.nokia.com/index.ph...t_test_example
    Btw, it's a bad idea to use mouse cursor on touch screen capable devices.

Similar Threads

  1. Navigation Keypad removal from emulator
    By gavdian in forum Mobile Java Tools & SDKs
    Replies: 1
    Last Post: 2010-01-19, 11:06
  2. WRT keypad navigation?
    By InYourDreamz in forum Symbian
    Replies: 5
    Last Post: 2009-11-20, 18:55
  3. Navigation
    By sim0nha in forum Symbian
    Replies: 0
    Last Post: 2009-07-14, 19:35
  4. navigation API
    By matrix241 in forum Mobile Java General
    Replies: 11
    Last Post: 2009-01-16, 08:52
  5. KeyPad
    By mbsagarb in forum Symbian User Interface
    Replies: 0
    Last Post: 2003-03-11, 03:07

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •