import QtQuick import QtQuick.Controls.Material Item { id: siteInConstruction anchors.fill: parent property string inDevIconDataURI: `data:image/svg+xml;utf8, ` property string subtitle: "" // workaround to prevent the error "Point size [...] must be greater than 0" function getFontSize(s) { return s <= 0 ? 1 : s; } children: [ Icon { id: inDevIcon anchors.verticalCenter: parent.verticalCenter anchors.horizontalCenter: parent.horizontalCenter path: parent.inDevIconDataURI width: parent.width/5 height: width color: Material.foreground }, Text { id: inDevText anchors.verticalCenter: parent.verticalCenter anchors.horizontalCenter: parent.horizontalCenter anchors.top: inDevIcon.bottom anchors.margins: inDevIcon.width/10 font.pointSize: getFontSize(inDevIcon.width/8) text: "Site in construction!" color: Material.foreground } ] }