webengine: add examples

This commit is contained in:
mappu 2024-11-27 18:16:55 +13:00
parent ad55d185da
commit 77cd3f2e79
5 changed files with 40 additions and 0 deletions

2
.gitignore vendored
View File

@ -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

View File

@ -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()
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

View File

@ -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()
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB