miqt/examples/libraries/extras-scintillaedit/main.go

22 lines
345 B
Go
Raw Normal View History

2024-10-20 05:02:27 +00:00
package main
import (
"os"
"github.com/mappu/miqt/qt"
"github.com/mappu/miqt/qt-extras/scintillaedit"
)
// n.b. May need LD_LIBRARY_PATH= env var set to find the necessary .so file
func main() {
qt.NewQApplication(os.Args)
area := scintillaedit.NewScintillaEdit()
area.SetFixedSize2(640, 480)
area.Show()
qt.QApplication_Exec()
}