Swears at the class, I can not understand the reasons:
#ifndef SETMAIL_H #define SETMAIL_H #include <QObject> #include "class_mail/_class_mail.h" class SetMail : public QObject { Q_OBJECT public: explicit SetMail(QObject *parent = 0); QString sender; // ΠΊΠΎΠΌΡ QString provider; // ΠΎΡ ΠΊΠΎΠ³ΠΎ QString theme; // ΡΠ΅ΠΌΠ° ΠΏΠΈΡΡΠΌΠ° QString file_letter; // ΡΠ΅Π»ΠΎ ΠΏΠΈΡΡΠΌΠ° QString file_attach; // ΠΏΡΠΈΠ»ΠΎΠΆΠ΅Π½ΠΆΠΈΠ΅ ΠΊ ΠΏΠΈΡΡΠΌΡ int subscribeId; // id ΠΏΠΎΠ΄ΠΏΠΈΡΠΊΠΈ signals: public slots: private: void test (); }; #endif // SETMAIL_H #include "setmail.h" SetMail::SetMail(QObject *parent) : QObject(parent) { } void SetMail::test() { subscribeId = 0; }
Errors:
error: use of deleted function 'SetMail::SetMail(const SetMail&)' case 0: _t->setMail((*reinterpret_cast< SetMail(*)>(_a[1]))); break; ^ /Qt/5.6/gcc_64/include/QtCore/qobject.h:461: error: 'QObject::QObject(const QObject&)' is private Q_DISABLE_COPY(QObject) ^ error: within this context class SetMail : public QObject ^ error: use of deleted function 'QObject::QObject(const QObject&)'