import QtQuick 2.13 import QtQuick.Layouts 1.13 Rectangle { Layout.preferredWidth: width Layout.preferredHeight: height }