Last active
June 19, 2022 12:43
-
-
Save scmanjarrez/fcbcb5f9b94a29e745b0896c8393a8c5 to your computer and use it in GitHub Desktop.
qml debug rectangle: https://stackoverflow.com/a/60641874/4305230
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import QtQuick 2.12 | |
Rectangle { | |
property var toFill: parent // instantiation site "can" (optionally) override | |
property color customColor: 'yellow' // instantiation site "can" (optionally) override | |
property int customThickness: 1 // instantiation site "can" (optionally) override | |
anchors.fill: toFill | |
z: 200 | |
color: 'transparent' | |
border.color: customColor | |
border.width: customThickness | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment