diff --git a/.gitignore b/.gitignore index 9582fb36..c752ae03 100644 --- a/.gitignore +++ b/.gitignore @@ -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 diff --git a/examples/libraries/qt-svg/main.go b/examples/libraries/qt-svg/main.go new file mode 100644 index 00000000..9579262d --- /dev/null +++ b/examples/libraries/qt-svg/main.go @@ -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() +} diff --git a/examples/libraries/qt-svg/screenshot.png b/examples/libraries/qt-svg/screenshot.png new file mode 100644 index 00000000..40c43a31 Binary files /dev/null and b/examples/libraries/qt-svg/screenshot.png differ