Advertisement
Touch_Grass

Untitled

May 18th, 2023
1,102
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 QtQuick.Window
  3. import QtQuick.Controls
  4. import com.example 1.0
  5.  
  6. Window {
  7.     width: 640
  8.     height: 480
  9.     visible: true
  10.     title: qsTr("Hello World")
  11.  
  12.     MyClass {
  13.         id: myObject
  14.     }
  15.  
  16.     Button {
  17.         id: button
  18.         text: "Click for parse"
  19.  
  20.         onClicked: {
  21.             myObject.buttonClicked();
  22.         }
  23.     }
  24.  
  25.     Connections {
  26.         target: myObject
  27.         onResponseReceived: {
  28.             console.log("Response received");
  29.         }
  30.     }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement