0

I develop a program and I have 10 backups of it. I added some lines to it and when I compiled the project and now it has the following error:

C:\Qt\Qt5.0.1\5.0.1\mingw47_32\include\QtWidgets\qtabwidget.h:173: error: 'QTabWidget::QTabWidget(const QTabWidget&)' is private

the error is from * line

namespace Ui {
  class ContentControl;
}

class ContentControl : public QTabWidget // * from this line
{
    Q_OBJECT

public:
.
.
.
}

All backups have this error now. Any idea why? I re-installed Qt but the problem is still present.

Daniel Hedberg
  • 5,677
  • 4
  • 36
  • 61
Mahdi_Nine
  • 14,205
  • 26
  • 82
  • 117

1 Answers1

1

You cannot create a copy of a QTabWidget object. Somewhere in your code you are calling the copy constructor of QTabWidget which is not allowed as it is declared private in the Qt source code.

Daniel Hedberg
  • 5,677
  • 4
  • 36
  • 61