mirror of
https://github.com/mappu/miqt.git
synced 2025-08-06 14:19:48 +08:00
svg: add example
This commit is contained in:
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 |
Reference in New Issue
Block a user