go-qml / qml

QML support for the Go language
Other
1.96k stars 189 forks source link

Add support for Qt 5.4 WebEngine #120

Open karalabe opened 9 years ago

karalabe commented 9 years ago

I've implemented a simple wrapper around the webengine initialization function call to be able to use QtWebEngine QML modules too in go-qml applications. I've placed it in a separate folder so that only people needing it will have to have the Qt 5.4 dependencies installed. I've also added a simple example loading the CodinGame website which is very heavy on animation (hence why webkit fails utterly with it).

obscuren commented 9 years ago

Does QtWebEngine.experimental 1.0 work for you? I've tried the most simplest implementation. Importing the experimental module (not even using it) won't allow you to open a window.

Component.onCompleted: {
    console.log("?")
}

Shows no output. I'm guessing it somehow fails opening the experimental module.

karalabe commented 9 years ago

Haven't really tried it, I've only needed the base WebEngine, and even that only to display a pretty much dumb browser widget. What's in that code?

Btw, there's also this issue I've encountered a while ago: https://github.com/go-qml/qml/issues/124, don't know it it would be related to your example if you try and log something.

Does my example that I've included with this PR work on your end?

niemeyer commented 9 years ago

Just a quick note to let you know this is on my radar. I haven't had a chance to evaluate it yet, but it's on the list.

tgerring commented 9 years ago

@niemeyer Thank you for maintaining this project :) Do you have any timeline on integrating WebEngine support or is there anything that can be done to assist? There seem to be a few people in need of it

kdar commented 9 years ago

WebEngine would be great! +1

rawberg commented 9 years ago

+1 official integration would be great!

hachi8833 commented 8 years ago

+1

prologic commented 7 years ago

I can confirm the patches work as expected. For lack of official support in this package (as of now) I'm actually going to build something using go-qml with the patches from @karalabe So thank you :)