Skip to content

Instantly share code, notes, and snippets.

@tummychow
Created February 17, 2014 19:45
Show Gist options
  • Save tummychow/9057559 to your computer and use it in GitHub Desktop.
Save tummychow/9057559 to your computer and use it in GitHub Desktop.
package main
import (
"github.com/niemeyer/qml"
)
func main() {
qml.Init(nil)
engine := qml.NewEngine()
component, err := engine.LoadFile("particle.qml")
if err != nil {
panic(err)
}
window := component.CreateWindow(nil)
window.Show()
window.Wait()
}
import QtQuick 2.0
Rectangle {
id: root
width: 640
height: 480
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment