Hi wysota,

Thanks for your reply.

Actually I have already tried it, but the error seems to be the similar:

Qt Code:
  1. #ifndef ACCOUNT_H
  2. #define ACCOUNT_H
  3.  
  4. #include <QPixmap>
  5. #include <QString>
  6.  
  7.  
  8. class Account {
  9. private:
  10. QString provider;
  11. QString type;
  12. QPixmap icon;
  13.  
  14. public:
  15. Account(QString _provider, QString type, QPixmap icon);
  16. Account();
  17. Account(const Account &account);
  18. ~Account();
  19. void setProvider(QString _provider);
  20. QString getProvider();
  21. void setType(QString _type);
  22. QString getType();
  23. void setIcon(QPixmap _icon);
  24. QPixmap getIcon();
  25. };
  26.  
  27. Q_DECLARE_METATYPE(Account)
  28.  
  29. #endif // ACCOUNT_H
To copy to clipboard, switch view to plain text mode 

And the error is:

Account.cpp:3: error: expected constructor, destructor, or type conversion before ‘Account’

Any idea?