diff --git a/.gitignore b/.gitignore index 179a6992..5576b734 100644 --- a/.gitignore +++ b/.gitignore @@ -35,8 +35,10 @@ 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-webengine/qt-webengine examples/libraries/qt-webkit/qt-webkit examples/libraries/qt6-multimedia/qt6-multimedia +examples/libraries/qt6-webengine/qt6-webengine examples/libraries/restricted-extras-qscintilla/restricted-extras-qscintilla # android temporary build files diff --git a/examples/libraries/qt-webengine/main.go b/examples/libraries/qt-webengine/main.go new file mode 100644 index 00000000..75057ed4 --- /dev/null +++ b/examples/libraries/qt-webengine/main.go @@ -0,0 +1,19 @@ +package main + +import ( + "os" + + "github.com/mappu/miqt/qt" + "github.com/mappu/miqt/qt/webengine" +) + +func main() { + + qt.NewQApplication(os.Args) + + w := webengine.NewQWebEngineView2() + w.Load(qt.NewQUrl3("https://www.github.com/mappu/miqt")) + w.Show() + + qt.QApplication_Exec() +} diff --git a/examples/libraries/qt-webengine/screenshot.png b/examples/libraries/qt-webengine/screenshot.png new file mode 100644 index 00000000..0ba4cb68 Binary files /dev/null and b/examples/libraries/qt-webengine/screenshot.png differ diff --git a/examples/libraries/qt6-webengine/main.go b/examples/libraries/qt6-webengine/main.go new file mode 100644 index 00000000..4193829e --- /dev/null +++ b/examples/libraries/qt6-webengine/main.go @@ -0,0 +1,19 @@ +package main + +import ( + "os" + + qt "github.com/mappu/miqt/qt6" + "github.com/mappu/miqt/qt6/webengine" +) + +func main() { + + qt.NewQApplication(os.Args) + + w := webengine.NewQWebEngineView2() + w.Load(qt.NewQUrl3("https://www.github.com/mappu/miqt")) + w.Show() + + qt.QApplication_Exec() +} diff --git a/examples/libraries/qt6-webengine/screenshot.png b/examples/libraries/qt6-webengine/screenshot.png new file mode 100644 index 00000000..7ded6d39 Binary files /dev/null and b/examples/libraries/qt6-webengine/screenshot.png differ