scintillaedit: add example

This commit is contained in:
mappu 2024-10-20 18:02:27 +13:00
parent 11297b8ecd
commit 095972c057
3 changed files with 22 additions and 0 deletions

1
.gitignore vendored
View File

@ -27,6 +27,7 @@ examples/uidesigner/uidesigner
examples/uidesigner/uidesigner.exe
examples/libraries/qt-qprintsupport/qt-qprintsupport
examples/libraries/restricted-extras-qscintilla/restricted-extras-qscintilla
examples/libraries/extras-scintillaedit/extras-scintillaedit
# android temporary build files
android-build

View File

@ -0,0 +1,21 @@
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()
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.2 KiB