#ifndef CPUWORKER_H #define CPUWORKER_H #include #include class CPUWorker : public QObject { Q_OBJECT public: explicit CPUWorker(QObject *parent = nullptr); signals: void dataReady(int coreIndex, double usage); public slots: void process(); private: void fetchCpuUsage(); }; #endif // CPUWORKER_H