Advertisement
Guest User

Untitled

a guest
Sep 20th, 2020
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
QML 0.46 KB | None | 0 0
  1. import QtQuick 2.15
  2. import QtQuick.Window 2.15
  3. import RenderItem 1.0
  4.  
  5. Window {
  6.     width: 640
  7.     height: 480
  8.     visible: true
  9.     title: qsTr("Hello World")
  10.  
  11.     RenderItem{
  12.         id: renderItem
  13.         width: 500; height: 500
  14.     }
  15.     Rectangle{
  16.         id: renderRect
  17.         color: "red"
  18.         opacity: 0.2
  19.         width: 500; height: 500
  20.     }
  21.     MouseArea{
  22.         anchors.fill: parent
  23.         onClicked: renderItem.update()
  24.     }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement