change item to rectangle

This commit is contained in:
王劲鹏 2021-03-02 10:13:16 +08:00 committed by osborn
parent 97fdb55091
commit 78629497aa
2 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@ import QtQuick 2.12
import QtQuick.Layouts 1.15 import QtQuick.Layouts 1.15
import pub.doric.widget 1.0 import pub.doric.widget 1.0
Item { Rectangle {
id: flex id: flex
property int minHeight: 0 property int minHeight: 0

View File

@ -65,7 +65,7 @@ class LayoutDemo extends Panel {
height: 300, height: 300,
}) })
], { ], {
width: 300, width: 400,
height: 300, height: 300,
backgroundColor: Color.BLACK backgroundColor: Color.BLACK
}).in(rootView) }).in(rootView)