Re: Qt embedded - gpio event
Hi,
Your OS (operating system) .i.e Linux, needs to communicate that event to the qtapplication. I am not sure of the details of your kit. Is that event being sent to the Qt application?
Re: Qt embedded - gpio event
Hi,
thanks for your reply!
No the gpio event isn't being sent to my qt application and have no idea how to do this.
Btw. on my microcontroller (NGW100) runs a linux OS and im reading the ports by using the /dev-based GPIO framework.
Re: Qt embedded - gpio event
OK, you can read the ports via /dev. In your QT application make a thread that monitors the port status (reads from /dev/..), then you can use signals/slots or QEvent to send that signal to your object.
this is just an example. Read up on signals/slots.
connect(SENDINGOBJECT, SIGNAL(portstatus(val)),RECOBJECT,SLOT(recportstat us(val)));
When the port is activated make a signal .. emit portstatus(val), then in your receiver object make a slot recportstatus(val).