When i try to add a delegate file in my project, there is something wrong with my codes. I don't know why. My operations are as below. My operation
And the tutorial is as following:
#ifndef MYDELEGATE_H
#define MYDELEGATE_H
#include <QItemDelegate>
class MyDelegate : public QItemDelegate
{
Q_OBJECT
public:
explicit MyDelegate(QObject *parent = 0);
signals:
public slots;
};
#endif // MYDELEGATE_H
What is wrong with my file setting? Why do I lose the QObject *parent