here is my code:
in _File.h:
#include <QString>
#include <QFile>
class _File
: public QFile
{
Q_OBJECT
public:
_File();
....//and it goes on
};
#include <QString>
#include <QFile>
class _File : public QFile
{
Q_OBJECT
public:
_File();
_File(const QString &name);
....//and it goes on
};
To copy to clipboard, switch view to plain text mode
in _File.cpp
_File::_File() :
{
this->setProgress(0);
this->setFilename("");
}
_File
::_File
(const QString &qtname
) {
this->setProgress(0);
...}}
_File::_File() :
QFile()
{
this->setProgress(0);
this->setFilename("");
}
_File::_File(const QString &qtname)
: QFile(name)
{
this->setProgress(0);
...}}
To copy to clipboard, switch view to plain text mode
and it goes on
but it has got compilation errors now. it says :
QFile::QFile(const QFile&) is private
within this context; when i click "within this context" it takes me to starting braces of _File class in header file
I am so over this error now, i have been trying to resolve this error for about 2 hours now...any help would be appreciated. thanks
Bookmarks