svg: add example

This commit is contained in:
mappu 2024-11-26 19:54:57 +13:00
parent 86a8f2b6b8
commit 23e4e307d9
3 changed files with 19 additions and 0 deletions

1
.gitignore vendored
View File

@ -33,6 +33,7 @@ examples/libraries/extras-scintillaedit/extras-scintillaedit
examples/libraries/qt-multimedia/qt-multimedia examples/libraries/qt-multimedia/qt-multimedia
examples/libraries/qt-network/qt-network examples/libraries/qt-network/qt-network
examples/libraries/qt-printsupport/qt-printsupport examples/libraries/qt-printsupport/qt-printsupport
examples/libraries/qt-svg/qt-svg
examples/libraries/qt6-multimedia/qt6-multimedia examples/libraries/qt6-multimedia/qt6-multimedia
examples/libraries/restricted-extras-qscintilla/restricted-extras-qscintilla examples/libraries/restricted-extras-qscintilla/restricted-extras-qscintilla

View 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()
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB