webkit: add example

This commit is contained in:
mappu 2024-11-26 22:31:41 +13:00
parent 2c067edda5
commit b91500af07
3 changed files with 20 additions and 0 deletions

1
.gitignore vendored
View File

@ -35,6 +35,7 @@ examples/libraries/qt-network/qt-network
examples/libraries/qt-printsupport/qt-printsupport examples/libraries/qt-printsupport/qt-printsupport
examples/libraries/qt-script/qt-script examples/libraries/qt-script/qt-script
examples/libraries/qt-svg/qt-svg examples/libraries/qt-svg/qt-svg
examples/libraries/qt-webkit/qt-webkit
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,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()
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB