I want to ask:
i created and object type class name Movie:
Code:
#ifndef MOVIE_H #define MOVIE_H #include <QObject> QT_BEGIN_NAMESPACE class QLabel; QT_END_NAMESPACE { Q_OBJECT public: ~Movie(); public slots: {return _name;} {_name = name_in;} {return _date;} {_date = date_in;} {return _about;} {_about = about_in;} {return _picture;} {_picture = picture_in;} private: QString _name; QString _date; QString _about; QString _picture; }; #endif // MOVIE_H
In mine main application i Use the following code:
I get the following error:
'class QObject' has no member named 'setName'
What am I doing wrong?