Welcome, Guest

Author Topic: Use of hardware buttons connected to GPIO to control the GUI in Qt  (Read 159 times)

Narender

  • Newbie
  • *
  • Posts: 3
  • Karma: +0/-0
Hi All,

I am working on project using Qt(IDE), C++(language) and opencv libraries.
In the project I have a GUI that displays the input from a camera and has various status indicator labels.
These labels indicate various states the system is in at any particular instance of time.
I load different images in the labels to indicate different states.
As of now the trigger to change the image of a label comes from soft buttons written in c++ using the Qt buttons layout.
I am trying to find a way to control the change of images in the labels using hardware buttons that are connected to the GPIOs of the A64 board.
Could anyone point me in the right direction? Please fell free to comment if my query seems unclear.
Any help is much appreciated.

Thanks in advance..

lambda

  • Full Member
  • ***
  • Posts: 165
  • Karma: +12/-0
    • Support my work
Re: Use of hardware buttons connected to GPIO to control the GUI in Qt
« Reply #1 on: December 25, 2018, 07:52:08 PM »
I think you want to use the gpio-keys kernel module.