in fact I want to read my probes that I write to a file every 5 seconds, and then I read this file wherever I need temperatures in my code.
and on the GUI I read this file every 5 seconds to update...
void Thread::lectureSondes()
{
int newTemperature = readTemperature();
if ( newTemperature != oldTemperature )
{
oldTemperature = newTemperature;
emit...
so I succeeded:
class MainWindow: public QWidget
{
Q_OBJECT
public:
MainWindow(QWidget *parent = nullptr);
Do you have an example? Please .
because I can't! THANKS
Quickly.
In the main thread (GUI) you should define the slot temperatureChanged(int new_temperature).
In this slot you display the appropriate graphics.
In the additional thread you make a method...
Qt Centre is a community site devoted to programming in C++ using the Qt framework developed at Digia.
If you have any problems with Qt or its usage, you can get help from the members of Qt community on our forum.
Don't forget to check out our links section for more Qt resources.
Qt is a cross-platform application and UI framework. Using Qt, you can write web-enabled applications once and deploy them across desktop, mobile and embedded operating systems without rewriting the source code.
QT6 OpenGL left right inverted
18th January 2025 22:35 by fulgorit