Olimex Support Forum

OLinuXino Android / Linux boards and System On Modules => A64 => Topic started by: Narender on December 24, 2018, 07:26:56 AM

Title: Use of hardware buttons connected to GPIO to control the GUI in Qt
Post by: Narender on December 24, 2018, 07:26:56 AM
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..
Title: Re: Use of hardware buttons connected to GPIO to control the GUI in Qt
Post by: lambda on December 25, 2018, 07:52:08 PM
I think you want to use the gpio-keys kernel module.