Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding QtWebEngine Support #20

Open
rawberg opened this issue Jun 16, 2015 · 2 comments
Open

Adding QtWebEngine Support #20

rawberg opened this issue Jun 16, 2015 · 2 comments

Comments

@rawberg
Copy link

rawberg commented Jun 16, 2015

I was able to get ruby-qml working with Qt 5.5.0-beta on OSX! QtWebEngine loads but crashes immediately because QtWebEngine::initialize must be called before it can be used.

Where is the correct place to call QtWebEngine::initialize in a ruby-qml app? For reference the go-qml project has an open pull request to support QtWebEngine.

@seanchas116
Copy link
Owner

ruby-qml has QML.on_init method (https://github.com/seanchas116/ruby-qml/blob/master/lib/qml/application.rb#L57) for register custom initializations that run after QML initialization. (for example, QML::Access.register_to_qml uses this method)
You can call QtWebEngine::initialize from there via some Qt C++ plugins.

@seanchas116
Copy link
Owner

The plugin that ruby-qml loads by default is here: https://github.com/seanchas116/ruby-qml/tree/master/ext/qml/rubyqml-plugin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants