Results 1 to 2 of 2

Thread: How to get click event using Qt creator in my board

  1. #1
    Join Date
    Oct 2015
    Posts
    27
    Qt products
    Qt5 Qt/Embedded
    Platforms
    Unix/X11

    Default How to get click event using Qt creator in my board

    Actually im running my Qt creator application in my grayhill board . Qt application is working fine but i need to get the click event of the board, because the board having 5 buttons (physical buttons) named as 1 ,2 ,3 ,4,5 . The board is same like beaglebone board. Please refer below, im having exactly same board.
    These are the keycode for my device,
    keycode 67 = Right
    keycode 68 = Up
    keycode 69 = Down
    keycode 70 = Tab
    keycode 71 = Return

    how to get these keycode in C++ when clicking corresponding buttons.

    grayhill.jpg
    Last edited by shivcena; 7th November 2015 at 11:27.

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,420
    Thanks
    37
    Thanked 1,545 Times in 1,495 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: How to get click event using Qt creator in my board

    Quote Originally Posted by shivcena View Post
    Actually im running my Qt creator application in my grayhill board
    Actually you are not. Would be helpful if you would stop repeating that false information.

    Quote Originally Posted by shivcena View Post
    how to get these keycode in C++ when clicking corresponding buttons.
    Key events are delivered to the widget which has the keyboard focus.
    Overwrite QWidget::keyPressEvent() and/or QWidget::keyReleaseEvent() or use an event filter.

    Cheers,
    _

Similar Threads

  1. single board computer embeddede board, mini2440v2, sky2440v2
    By wujianwen in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 2nd November 2016, 07:29
  2. Replies: 0
    Last Post: 23rd November 2012, 14:47
  3. pushButton click event
    By aj2903 in forum Qt Programming
    Replies: 1
    Last Post: 9th June 2009, 11:19
  4. click Event on Title Bar
    By anupamgee in forum Qt Programming
    Replies: 1
    Last Post: 26th May 2009, 17:12
  5. mouse click event
    By vijay anandh in forum Qt Programming
    Replies: 1
    Last Post: 1st May 2006, 09:24

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.