Fixed: 读取svg时传入绝对路径
parent
cd809e896f
commit
2f1e1a0e53
|
@ -17,8 +17,8 @@ void SimpleElement::loadSvgFile(const QString& filePath)
|
|||
SimpleElement::SimpleElement(QJsonObject jsonSource) : jsonSource(jsonSource)
|
||||
{
|
||||
painterPath.clear();
|
||||
loadSvgFile("D:\\Projects\\BigC\\svg\\3.svg");
|
||||
//loadSvgFile(jsonSource.value("data").toObject().value("include").toString());
|
||||
//loadSvgFile("D:\\Projects\\BigC\\svg\\3.svg");
|
||||
loadSvgFile("../"/*TODO: 改成json文件所在文件夹路径*/ + jsonSource.value("data").toObject().value("include").toString());
|
||||
}
|
||||
|
||||
GroupElement::GroupElement(FolderLayerWrapper *sourceLayer)
|
||||
|
|
Loading…
Reference in New Issue