From 23e4e307d939f0eb32887339c88858b148c06720 Mon Sep 17 00:00:00 2001 From: mappu Date: Tue, 26 Nov 2024 19:54:57 +1300 Subject: [PATCH] svg: add example --- .gitignore | 1 + examples/libraries/qt-svg/main.go | 18 ++++++++++++++++++ examples/libraries/qt-svg/screenshot.png | Bin 0 -> 5440 bytes 3 files changed, 19 insertions(+) create mode 100644 examples/libraries/qt-svg/main.go create mode 100644 examples/libraries/qt-svg/screenshot.png 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 0000000000000000000000000000000000000000..40c43a31636f45919c326340b5154c98209131c4 GIT binary patch literal 5440 zcmV-G6~F3Qp>BVSCvYt4^H#Eeaz6JvkFr43C708eiIV!`5Sk7_~D2DmgQV|vYWE2JD|aW z0@z8O*DbUPQZtNV`}NSskt6?(6+KdRbq6|F@B*(hJS{$909HYYlZuIn`BqX=(zhY8 ztuHic)TqCAC$aB8u$(JTc2jnRU}xA|K@Aqb1lVwb=k@4m(NT0<0g4k&Oia8165DQs z;^N|Nf<}xO@sHjl_PLqWbMj>$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