Hi everyone,
I'm trying to create a Qt application to run GPIOs on the Raspberry Pi with sensors.
I'm having trouble.
The interface works fine.
I have a screen (mainwindow class) with 5 QLCDNumbers that display temperatures read from a "temperatures" file (QSetting class) every 10 seconds using Qtimer.
This screen also displays animated GIFs based on the GPIOs.
mainwindow launches threadSondes (QThread class) and launches gainable (Gainable (gpios) class).
threadSondes writes the temperatures of the 5 sensors to "temperatures" (QSetting class) every 15 seconds using Qtimer.
The ducted system starts functions (cooling, heating, and heatwave) and launches a QTimer every second to update the functions.
My problem is that the thread's QTimer blocks my animated GIFs while the temperatures of the 5 sensors are being written.
And in my terminal, I have:
QObject::startTimer: Timers can only be used with threads started with QThread
Can anyone give me a procedure? Thanks.
here is my github link
https://github.com/ludoiphone/QtGainable
Bookmarks