mirror of
https://github.com/mappu/miqt.git
synced 2024-12-22 00:48:38 +00:00
webkit: add example
This commit is contained in:
parent
2c067edda5
commit
b91500af07
1
.gitignore
vendored
1
.gitignore
vendored
@ -35,6 +35,7 @@ examples/libraries/qt-network/qt-network
|
||||
examples/libraries/qt-printsupport/qt-printsupport
|
||||
examples/libraries/qt-script/qt-script
|
||||
examples/libraries/qt-svg/qt-svg
|
||||
examples/libraries/qt-webkit/qt-webkit
|
||||
examples/libraries/qt6-multimedia/qt6-multimedia
|
||||
examples/libraries/restricted-extras-qscintilla/restricted-extras-qscintilla
|
||||
|
||||
|
19
examples/libraries/qt-webkit/main.go
Normal file
19
examples/libraries/qt-webkit/main.go
Normal file
@ -0,0 +1,19 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"os"
|
||||
|
||||
"github.com/mappu/miqt/qt"
|
||||
"github.com/mappu/miqt/qt/webkit"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
||||
qt.NewQApplication(os.Args)
|
||||
|
||||
w := webkit.NewQWebView2()
|
||||
w.Load(qt.NewQUrl3("https://www.github.com/mappu/miqt"))
|
||||
w.Show()
|
||||
|
||||
qt.QApplication_Exec()
|
||||
}
|
BIN
examples/libraries/qt-webkit/screenshot.png
Normal file
BIN
examples/libraries/qt-webkit/screenshot.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 30 KiB |
Loading…
Reference in New Issue
Block a user