ciao!
ho un piccolo problema con QPlainTextEdit e QPushButton.
in pratica ho questa classe:
e questo il file di implementazione:codice:#ifndef STARTRESIZING_H #define STARTRESIZING_H #include <QRunnable> #include <QPlainTextEdit> #include <QPushButton> #include <QDebug> class StartResizing : public QRunnable { public: StartResizing(QVector<QString> list, int width, int height, QPlainTextEdit textArea, QString dir, QPushButton btn); ~StartResizing(); protected: QVector<QString> list; int width; int heigh; QPlainTextEdit textArea; QString dir; QPushButton btn; }; #endif // STARTRESIZING_H
quando compilo, però, ottengo questo errore:codice:#include "startresizing.h" StartResizing::StartResizing(QVector<QString> list, int width, int height, QPlainTextEdit textArea, QString dir, QPushButton btn) { this->list = list; this->width = width; this->heigh = height; this->textArea = textArea; this->dir = dir; this->btn = btn; } StartResizing::~StartResizing() { }
e un errore simile per il bottone.codice:C:\Qt\5.5\mingw492_32\include\QtCore\qglobal.h:1043: error: 'QPlainTextEdit& QPlainTextEdit::operator=(const QPlainTextEdit&)' is private Class &operator=(const Class &) Q_DECL_EQ_DELETE; ^ C:\Qt\5.5\mingw492_32\include\QtWidgets\qplaintextedit.h:270: in expansion of macro 'Q_DISABLE_COPY' Q_DISABLE_COPY(QPlainTextEdit) ^ E:\Project\CPP\QImageResizing\startresizing.cpp:8: error: within this context this->textArea = textArea; ^
avete qualche suggerimento??

Rispondi quotando
