Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import QtQuick 2.15
- import QtQuick.Window 2.15
- import RenderItem 1.0
- Window {
- width: 640
- height: 480
- visible: true
- title: qsTr("Hello World")
- RenderItem{
- id: renderItem
- width: 500; height: 500
- }
- Rectangle{
- id: renderRect
- color: "red"
- opacity: 0.2
- width: 500; height: 500
- }
- MouseArea{
- anchors.fill: parent
- onClicked: renderItem.update()
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement