我开发了一个程序,我有10个备份。我向它添加了一些行,当我编译项目时,现在它有以下错误:
C:\Qt\Qt5.0.1\5.0.1\mingw47_32\include\QtWidgets\qtabwidget.h:173: error: 'QTabWidget::QTabWidget(const QTabWidget&)' is private错误来自*行
namespace Ui {
class ContentControl;
}
class ContentControl : public QTabWidget // * from this line
{
Q_OBJECT
public:
.
.
.
}现在所有备份都有此错误。知道为什么吗?我重新安装了Qt,但问题仍然存在。
发布于 2013-06-25 05:20:58
您不能创建QTabWidget对象的副本。在您的代码中的某处,您正在调用QTabWidget的复制构造函数,这是不允许的,因为它在Qt源代码中被声明为私有。
https://stackoverflow.com/questions/17257919
复制相似问题