From eb5811dbb2c548514fe7526c800667b3817622a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=8A=B2=E9=B9=8F?= Date: Thu, 27 May 2021 18:34:01 +0800 Subject: [PATCH] fix visibility --- doric-Qt/example/doric/shader/DoricViewNode.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/doric-Qt/example/doric/shader/DoricViewNode.cpp b/doric-Qt/example/doric/shader/DoricViewNode.cpp index 80a3d7a9..edf712fa 100644 --- a/doric-Qt/example/doric/shader/DoricViewNode.cpp +++ b/doric-Qt/example/doric/shader/DoricViewNode.cpp @@ -175,6 +175,7 @@ void DoricViewNode::blend(QQuickItem *view, QString name, QJsonValue prop) { getLayouts()->setPaddingBottom(prop["bottom"].toDouble()); } else if (name == "hidden") { getLayouts()->setDisabled(prop.toBool()); + mView->setVisible(!prop.toBool()); } else if (name == "border") { qreal borderWidth = prop["width"].toDouble(); QString borderColor = DoricUtils::doricColor(prop["color"].toInt()).name();