Adding outline around multiple rectangles
-
This is using DropShadow (part of QtGraphicalEffects 1.0) , try the following;
import QtQuick 2.12 import QtQuick.Window 2.12 import QtGraphicalEffects 1.0 Window { width: 640 height: 480 visible: true title: qsTr("Hello World") Column { id: shape x: 160; y: 120 Rectangle { id: top width: 300; height: 50 color: "black" } Rectangle { id: mid x: 100 width: 50; height: 200 color: "black" } Rectangle { id: bot x: 100; y: 200 width: 200; height: 50 color: "black" } } DropShadow { source: shape anchors.fill: shape spread: 0.9 color: "red" } }