mirror of
https://github.com/mappu/miqt.git
synced 2025-02-01 19:10:21 +00:00
scintillaedit: add example
This commit is contained in:
parent
11297b8ecd
commit
095972c057
1
.gitignore
vendored
1
.gitignore
vendored
@ -27,6 +27,7 @@ examples/uidesigner/uidesigner
|
|||||||
examples/uidesigner/uidesigner.exe
|
examples/uidesigner/uidesigner.exe
|
||||||
examples/libraries/qt-qprintsupport/qt-qprintsupport
|
examples/libraries/qt-qprintsupport/qt-qprintsupport
|
||||||
examples/libraries/restricted-extras-qscintilla/restricted-extras-qscintilla
|
examples/libraries/restricted-extras-qscintilla/restricted-extras-qscintilla
|
||||||
|
examples/libraries/extras-scintillaedit/extras-scintillaedit
|
||||||
|
|
||||||
# android temporary build files
|
# android temporary build files
|
||||||
android-build
|
android-build
|
||||||
|
21
examples/libraries/extras-scintillaedit/main.go
Normal file
21
examples/libraries/extras-scintillaedit/main.go
Normal 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()
|
||||||
|
}
|
BIN
examples/libraries/extras-scintillaedit/scintillaedit.png
Normal file
BIN
examples/libraries/extras-scintillaedit/scintillaedit.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 8.2 KiB |
Loading…
x
Reference in New Issue
Block a user