Hi wysota,
Thanks for your reply.
Actually I have already tried it, but the error seems to be the similar:
#ifndef ACCOUNT_H
#define ACCOUNT_H
#include <QPixmap>
#include <QString>
class Account {
private:
public:
Account();
Account(const Account &account);
~Account();
void setProvider
(QString _provider
);
};
Q_DECLARE_METATYPE(Account)
#endif // ACCOUNT_H
#ifndef ACCOUNT_H
#define ACCOUNT_H
#include <QPixmap>
#include <QString>
class Account {
private:
QString provider;
QString type;
QPixmap icon;
public:
Account(QString _provider, QString type, QPixmap icon);
Account();
Account(const Account &account);
~Account();
void setProvider(QString _provider);
QString getProvider();
void setType(QString _type);
QString getType();
void setIcon(QPixmap _icon);
QPixmap getIcon();
};
Q_DECLARE_METATYPE(Account)
#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?
Bookmarks