Skip to content

Instantly share code, notes, and snippets.

@vannell
Created February 4, 2015 09:28
Show Gist options
  • Save vannell/de2d44bcd386722aa658 to your computer and use it in GitHub Desktop.
Save vannell/de2d44bcd386722aa658 to your computer and use it in GitHub Desktop.
import QtQuick 2.3
import "Classes" as Class
Item {
width: 600
height: 800
Class.Pcd {
id: personalDesktop
}
MouseArea {
anchors.fill: parent
onClicked: personalDesktop.startPcdCall()
}
}
// Classes/Pcd.qml
import QtQuick 2.3
Rectangle {
color: "red"
implicitWidth: 200
implicitHeight: 200
function startPcdCall() {
console.log("startPcdCall function called...");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment