mirror of
https://github.com/mappu/miqt.git
synced 2024-12-22 00:48:38 +00:00
svg: add example
This commit is contained in:
parent
86a8f2b6b8
commit
23e4e307d9
1
.gitignore
vendored
1
.gitignore
vendored
@ -33,6 +33,7 @@ examples/libraries/extras-scintillaedit/extras-scintillaedit
|
||||
examples/libraries/qt-multimedia/qt-multimedia
|
||||
examples/libraries/qt-network/qt-network
|
||||
examples/libraries/qt-printsupport/qt-printsupport
|
||||
examples/libraries/qt-svg/qt-svg
|
||||
examples/libraries/qt6-multimedia/qt6-multimedia
|
||||
examples/libraries/restricted-extras-qscintilla/restricted-extras-qscintilla
|
||||
|
||||
|
18
examples/libraries/qt-svg/main.go
Normal file
18
examples/libraries/qt-svg/main.go
Normal file
@ -0,0 +1,18 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"os"
|
||||
|
||||
"github.com/mappu/miqt/qt"
|
||||
"github.com/mappu/miqt/qt/svg"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
||||
qt.NewQApplication(os.Args)
|
||||
|
||||
w := svg.NewQSvgWidget3("../../../doc/logo.svg")
|
||||
w.Show()
|
||||
|
||||
qt.QApplication_Exec()
|
||||
}
|
BIN
examples/libraries/qt-svg/screenshot.png
Normal file
BIN
examples/libraries/qt-svg/screenshot.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.3 KiB |
Loading…
Reference in New Issue
Block a user