mirror of
https://github.com/bluszcz/cutego.git
synced 2024-09-29 05:35:16 +03:00
23 lines
464 B
Go
23 lines
464 B
Go
package main
|
|
|
|
import (
|
|
"os"
|
|
|
|
"github.com/therecipe/qt/core"
|
|
"github.com/therecipe/qt/gui"
|
|
"github.com/therecipe/qt/quick"
|
|
)
|
|
|
|
func main() {
|
|
core.QCoreApplication_SetAttribute(core.Qt__AA_EnableHighDpiScaling, true)
|
|
|
|
gui.NewQGuiApplication(len(os.Args), os.Args)
|
|
|
|
var view = quick.NewQQuickView(nil)
|
|
view.SetSource(core.NewQUrl3("qrc:/qml/calc.qml", 0))
|
|
view.SetResizeMode(quick.QQuickView__SizeRootObjectToView)
|
|
view.Show()
|
|
|
|
gui.QGuiApplication_Exec()
|
|
}
|