Advertisement
tubbadu

Untitled

Jul 11th, 2022
1,743
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
QML 0.52 KB | None | 0 0
  1. import QtQuick 2.15
  2. import org.kde.kirigami 2.13 as Kirigami
  3.  
  4. Kirigami.ApplicationWindow {
  5.     id: window
  6.     title: i18nc("@title:window", "Hello World")
  7.  
  8.     pageStack.initialPage: Kirigami.Page {
  9.         Rectangle{
  10.             color: "red"
  11.             anchors.fill: parent
  12.             Rectangle{
  13.                 id: rectangle
  14.                 color: "green"
  15.             }
  16.             MultiPointTouchArea{
  17.                 anchors.fill: parent
  18.                 touchPoints: [
  19.                     TouchPoint { id: point1 }
  20.                 ]
  21.                 onUpdated: {
  22.                     rectangle.height = point1.y
  23.                     rectangle.width = point1.x
  24.                 }
  25.             }
  26.         }
  27.     }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement