Skip to content

Commit

Permalink
webkit: add example
Browse files Browse the repository at this point in the history
  • Loading branch information
mappu committed Nov 26, 2024
1 parent 2c067ed commit b91500a
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
19 changes: 19 additions & 0 deletions examples/libraries/qt-webkit/main.go
Original file line number Diff line number Diff line change
@@ -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 added examples/libraries/qt-webkit/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit b91500a

Please sign in to comment.