// fileloader.h #ifndef FILELOADER_H #define FILELOADER_H #include class FileLoader : public QObject { Q_OBJECT public: explicit FileLoader(QObject *parent = nullptr); ~FileLoader(); public slots: void loadTextFile(const QString& fileName); signals: void fileLoaded(QStringList rows, int tableCol); }; #endif // FILELOADER_H