Home > other >  Help: how to drive control through GPIO key in QT UI interface?
Help: how to drive control through GPIO key in QT UI interface?

Time:09-27

Recently doing, rookie a separate button control, using a thread to control the UI interface of the operation, after button interface controls don't respond,
Who can say to the train of thought, method of Internet to differ, did not fully understand, or send me a complete best engineering example, the little girl very grateful ~ ~,

CodePudding user response:

Don't understand it,,,,

CodePudding user response:

GPIO key through the drive IO state to the message, push a button normal message processing in QT,

CodePudding user response:

I have a key driver, should be able to pass the key events to QT thread processing is ok

CodePudding user response:

QT is implemented by C + + language, C language, C + + language can call you have key drivers will have an application (which can be used for special access to key state at this time, such as the button is pressed), it would be easier, directly in QT up a thread persistent read the button state is ok, and then corresponding to the corresponding control shown above or you want action is carried out

CodePudding user response:

Sent after polling thread keys, events trigger signal, UI interface to write slot slot function do corresponding processing, connect
  • Related