MyTinyTodo2/testdata/quick/main.go

21 lines
398 B
Go

package main
import (
"os"
"github.com/therecipe/qt/core"
"github.com/therecipe/qt/gui"
"github.com/therecipe/qt/qml"
)
func main() {
core.QCoreApplication_SetAttribute(core.Qt__AA_EnableHighDpiScaling, true)
gui.NewQGuiApplication(len(os.Args), os.Args)
var app = qml.NewQQmlApplicationEngine(nil)
app.Load(core.NewQUrl3("qrc:/qml/application.qml", 0))
gui.QGuiApplication_Exec()
}