Пытаюсь создать свой класс на основе QGraphicsRectItem
#ifndef CCITY_H
#define CCITY_H
#include <QGraphicsRectItem>
#include <QString>
class CCity :public QGraphicsRectItem
{
private:
CCity();
CCity(QString coords, QString name);
public:
int x,y;
QString name, temp;
};
#endif // CCITY_H
На что компилятор ругается:
error: QGraphicsRectItem::QGraphicsRectItem(const QGraphicsRectItem&)' is private
error: within this context
Прошу прощения за глупый вопрос, но что я не так делаю?