blob: a16b6b1abfb9b81d5a07095a7358707e36d234ff (
plain) (
tree)
|
|
package main
import (
"fmt"
"gopkg.in/qml.v1"
"os"
)
func main() {
if err := qml.Run(run); err != nil {
fmt.Fprintf(os.Stderr, "error: %v\n", err)
os.Exit(1)
}
}
func run() error {
engine := qml.NewEngine()
controls, err := engine.LoadFile("main.qml")
if err != nil {
return err
}
window := controls.CreateWindow(nil)
window.Show()
window.Wait()
return nil
}
|