import QtQuick 2.0 import Qt.labs.controls 1.0 Switch { text: "Switch" Rectangle { anchors.fill: label color: "transparent" border.color: "red" } }