I want to ask:
i created and object type class name Movie:
Qt Code:
  1. #ifndef MOVIE_H
  2. #define MOVIE_H
  3.  
  4. #include <QObject>
  5.  
  6. QT_BEGIN_NAMESPACE
  7. class QLabel;
  8. QT_END_NAMESPACE
  9.  
  10. class Movie : public QObject
  11. {
  12. Q_OBJECT
  13. public:
  14. Movie(QObject *parent = 0);
  15. ~Movie();
  16. public slots:
  17. QString name()
  18. {return _name;}
  19. void setName(QString name_in)
  20. {_name = name_in;}
  21.  
  22. QString date()
  23. {return _date;}
  24. void setDate(QString date_in)
  25. {_date = date_in;}
  26.  
  27. QString about()
  28. {return _about;}
  29. void setAbout(QString about_in)
  30. {_about = about_in;}
  31.  
  32. QString picture()
  33. {return _picture;}
  34. void setPicture(QString picture_in)
  35. {_picture = picture_in;}
  36.  
  37. private:
  38. QString _name;
  39. QString _date;
  40. QString _about;
  41. QString _picture;
  42. };
  43.  
  44. #endif // MOVIE_H
To copy to clipboard, switch view to plain text mode 

In mine main application i Use the following code:
Qt Code:
  1. QObject *asd = new Movie;
  2. asd->setName(titleString);
To copy to clipboard, switch view to plain text mode 

I get the following error:
'class QObject' has no member named 'setName'

What am I doing wrong?