Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import QtQuick 2.15
- import QtQuick.Window
- import QtQuick.Controls
- import com.example 1.0
- Window {
- width: 640
- height: 480
- visible: true
- title: qsTr("Hello World")
- MyClass {
- id: myObject
- }
- Button {
- id: button
- text: "Click for parse"
- onClicked: {
- myObject.buttonClicked();
- }
- }
- Connections {
- target: myObject
- onResponseReceived: {
- console.log("Response received");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement