mirror of
https://github.com/mappu/miqt.git
synced 2024-12-22 08:58:37 +00:00
webengine: add examples
This commit is contained in:
parent
ad55d185da
commit
77cd3f2e79
2
.gitignore
vendored
2
.gitignore
vendored
@ -35,8 +35,10 @@ 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-webengine/qt-webengine
|
||||||
examples/libraries/qt-webkit/qt-webkit
|
examples/libraries/qt-webkit/qt-webkit
|
||||||
examples/libraries/qt6-multimedia/qt6-multimedia
|
examples/libraries/qt6-multimedia/qt6-multimedia
|
||||||
|
examples/libraries/qt6-webengine/qt6-webengine
|
||||||
examples/libraries/restricted-extras-qscintilla/restricted-extras-qscintilla
|
examples/libraries/restricted-extras-qscintilla/restricted-extras-qscintilla
|
||||||
|
|
||||||
# android temporary build files
|
# android temporary build files
|
||||||
|
19
examples/libraries/qt-webengine/main.go
Normal file
19
examples/libraries/qt-webengine/main.go
Normal 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()
|
||||||
|
}
|
BIN
examples/libraries/qt-webengine/screenshot.png
Normal file
BIN
examples/libraries/qt-webengine/screenshot.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 36 KiB |
19
examples/libraries/qt6-webengine/main.go
Normal file
19
examples/libraries/qt6-webengine/main.go
Normal 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()
|
||||||
|
}
|
BIN
examples/libraries/qt6-webengine/screenshot.png
Normal file
BIN
examples/libraries/qt6-webengine/screenshot.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 37 KiB |
Loading…
Reference in New Issue
Block a user