Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Responsive QtMainWindow on Startup.
-
hi,
my project involves taking reading from sensors to RaspberryPi and displaying them on Qt GUI. So far i was able to achieve it by using button clicked signal and slot. Now i want it to start getting readings as soon as program is executed. I scanned through some web articles but i did not get any Answers.
-
Which sensors are you talking about? QSensors have their own signals that are emitted when the value changes.
For your own sensors you can use QTimer to read the periodically.
Regards
-
@aha_1980
those are physical sensors connected to raspberry pi.
readings are updated on GUI.
I have updated my question.
regards.
-
@Andrex_Qt You still didn't say how you access the sensors.
You should read the links I provided to you.
Regards
-
You still didn't say how you access the sensors.
yes, that's very important. For instance, if you're using wiringPi library, you may want to take a look at using interrupts which will let you register a callback function.
-
@aha_1980
ok i access them through C Api
and i am reading the links you have given. thanks!
-
@Andrex_Qt said in Responsive QtMainWindow on Startup.:
i access them through C Api
Could it be possible you share a link to such API for the benefit of other users just in case?