Initial but not really
This commit is contained in:
20
testdata/quick/main.go
vendored
Normal file
20
testdata/quick/main.go
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
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()
|
||||
}
|
||||
Reference in New Issue
Block a user