#ifndef FRMFIND_H
#define FRMFIND_H
#include <QMainWindow>
#include<QThread>
namespace Ui {
class frmFind;
}
{
Q_OBJECT
public:
explicit frmFind
(QWidget *parent
= 0);
// void run();
~frmFind();
public slots:
void getDirNames();
private slots:
void on_btnSearch_clicked();
private:
Ui::frmFind *ui;
};
#endif // FRMFIND_H
#ifndef FRMFIND_H
#define FRMFIND_H
#include <QMainWindow>
#include<QThread>
namespace Ui {
class frmFind;
}
class frmFind : public QMainWindow, QThread
{
Q_OBJECT
public:
explicit frmFind(QWidget *parent = 0);
// void run();
void QThread::run();
~frmFind();
public slots:
void getDirNames();
private slots:
void on_btnSearch_clicked();
private:
Ui::frmFind *ui;
};
#endif // FRMFIND_H
To copy to clipboard, switch view to plain text mode
when i am including QThread in above way for main Form , it giving this error
ERROR:
/PATHNAME/moc_frmfind.cpp:55: error: ‘QObject’ is an ambiguous base of ‘frmFind’
Bookmarks