diff --git a/.gitignore b/.gitignore index a1dabbbf..179a6992 100644 --- a/.gitignore +++ b/.gitignore @@ -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 diff --git a/examples/libraries/qt-webkit/main.go b/examples/libraries/qt-webkit/main.go new file mode 100644 index 00000000..b9fc7af2 --- /dev/null +++ b/examples/libraries/qt-webkit/main.go @@ -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() +} diff --git a/examples/libraries/qt-webkit/screenshot.png b/examples/libraries/qt-webkit/screenshot.png new file mode 100644 index 00000000..0934e0a9 Binary files /dev/null and b/examples/libraries/qt-webkit/screenshot.png differ