MCPcopy
hub / github.com/go-qml/qml / Root

Method Root

qml.go:891–898  ·  view source on GitHub ↗

Root returns the root object being rendered. If the window was defined in QML code, the root object is the window itself.

()

Source from the content-addressed store, hash-verified

889//
890// If the window was defined in QML code, the root object is the window itself.
891func (win *Window) Root() Object {
892 var obj Common
893 obj.engine = win.engine
894 RunMain(func() {
895 obj.addr = C.windowRootObject(win.addr)
896 })
897 return &obj
898}
899
900// Wait blocks the current goroutine until the window is closed.
901func (win *Window) Wait() {

Callers 5

qml_test.goFile · 0.80
runFunction · 0.80
runFunction · 0.80
runFunction · 0.80
runFunction · 0.80

Calls 1

RunMainFunction · 0.85

Tested by

no test coverage detected