2,154
社区成员




```
// ggui01.go
package main
import (
"os"
"github.com/therecipe/qt/widgets"
)
func main() {
widgets.NewQApplication(len(os.Args), os.Args)
window := widgets.NewQMainWindow(nil, 0)
label := widgets.NewQLabel(window, 0)
label.SetText("Hello world")
window.Show()
widgets.QApplication_Exec()
}
```
D:\go_coding\gogui> qtdeploy.exe build desktop .\ggui01.go
time="2023-05-26T11:58:13+08:00" level=error msg="failed to run command" _func=RunCmd cmd="go get -d -v .\\ggui01.go" dir= env= error="exit status 1" name="go get pkg"
go: ./ggui01.go exists as a file, but 'go get' requires package arguments