我有以下内容:
QString themePath(":/themes/");
std::vector<QString> resourcePaths;
resourcePaths.push_back(QString("html/details.html"));
std::vector<QFile> resources;
for (std::vector<QString>::iterator it = resourcePaths.begin(); it != resourcePaths.end(); ++it) {
QString path = QString("%1%2/%3").arg(themePath, THEME, *it);
QFile resource(path);
resources.push_back(resource);
}
给我以下错误:
error: 'QFile::QFile(const QFile&)' is private
。
如果我使用 QList 而不是 std::vector,我会得到同样的错误。
感谢您的关注。