panic: interface conversion: interface {} is []interface {}, not []*gui.QScreen
inits opened this issue · 0 comments
inits commented
error message is:
QApplication: invalid style override passed, ignoring it.
Available styles: Windows, Fusion
panic: interface conversion: interface {} is []interface {}, not []*gui.QScreen
goroutine 1 [running, locked to thread]:
github.com/therecipe/qt/gui.(*QGuiApplication).Screens(...)
/home/inits/works/dataker/data/workspace/pkg/mod/github.com/therecipe/qt@v0.0.0-20200904063919-c0c124a5770d/gui/gui.go:9725
main.main()
/home/inits/Desktop/test1/gtest1/hello.go:80 +0x46e
- sample code is
func main() {
mainApp := widgets.NewQApplication(len(os.Args), os.Args)
snum := mainApp.Screens()
fmt.Println("snum is: ", snum)
}