How using svg file in Shape
-
import QtQuick 2.0 Item { width: 200 height: 200 Image { id: svgImage source: "file:///path/to/your/svg/file.svg" anchors.centerIn: parent } Shape { id: svgShape fill: svgImage strokeColor: "black" strokeWidth: 2 shape: Path { // Define the path for your shape } } } -
import QtQuick 2.0 Item { width: 200 height: 200 Image { id: svgImage source: "file:///path/to/your/svg/file.svg" anchors.centerIn: parent } Shape { id: svgShape fill: svgImage strokeColor: "black" strokeWidth: 2 shape: Path { // Define the path for your shape } } } -
M Mihaill has marked this topic as solved on