// storageworker.h #ifndef STORAGE_WORKER_H #define STORAGE_WORKER_H #include #include #include "globals.h" class StorageWorker : public QObject { Q_OBJECT public: explicit StorageWorker(QObject *parent = nullptr); ~StorageWorker(); public slots: void process(); // 存储处理槽 private: QString getSaveDirectory(); // 获取保存目录的函数 }; #endif // STORAGE_WORKER_H