add book
This commit is contained in:
33
Qt6QMLBeginnersCode/6.Javascript/4-JsDirectImpoart/Main.qml
Normal file
33
Qt6QMLBeginnersCode/6.Javascript/4-JsDirectImpoart/Main.qml
Normal file
@@ -0,0 +1,33 @@
|
||||
// Copyright (c) Daniel Gakwaya.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
import QtQuick
|
||||
import "utilities1.js" as Utilities1
|
||||
|
||||
|
||||
Window {
|
||||
visible: true
|
||||
width: 640
|
||||
height: 480
|
||||
title: qsTr("Javascript Direct Import")
|
||||
|
||||
Rectangle {
|
||||
width: 300
|
||||
height: 100
|
||||
color: "yellowgreen"
|
||||
anchors.centerIn: parent
|
||||
|
||||
Text {
|
||||
text: "Click Me"
|
||||
anchors.centerIn: parent
|
||||
}
|
||||
|
||||
MouseArea {
|
||||
anchors.fill: parent
|
||||
onClicked: {
|
||||
//console.log("Hello there")
|
||||
Utilities1.greeting()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user