Implement a proper destructor for ComputerManager to prevent polling threads from living beyond QGuiApplication
This commit is contained in:
parent
06501bd4b7
commit
5ee1358712
2 changed files with 52 additions and 0 deletions
|
|
@ -249,6 +249,8 @@ class ComputerManager : public QObject
|
|||
public:
|
||||
explicit ComputerManager(QObject *parent = nullptr);
|
||||
|
||||
virtual ~ComputerManager();
|
||||
|
||||
Q_INVOKABLE void startPolling();
|
||||
|
||||
Q_INVOKABLE void stopPollingAsync();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue