Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // SomeFunc.qml
- Item {
- function some() {
- console.log("Hello")
- }
- }
- // main.qml
- Rectangle {
- width: 800
- height: 600
- SomeFunc {
- id : func
- }
- Button {
- text: qsTr("Hello, world")
- onClicked: {
- func.some()
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement