Skip to content
This repository has been archived by the owner on Feb 17, 2021. It is now read-only.

webview #9

Open
pythoneer opened this issue Sep 24, 2016 · 2 comments
Open

webview #9

pythoneer opened this issue Sep 24, 2016 · 2 comments

Comments

@pythoneer
Copy link

hi, do you see any way to use the webview module? Unfortunately the webview needs an initialization by invoking QtWebView::initialize();

@White-Oak White-Oak self-assigned this Sep 25, 2016
@White-Oak
Copy link
Owner

White-Oak commented Sep 25, 2016

If this is all it needs, it probably won't be a problem.

Edit: won't be a problem to introduce a special function in qml-rust that would call to QtWebView::initialize();

@pythoneer
Copy link
Author

That would be cool. But the original question embeds a more general problem. As one could add more and more wrappers manually to invoke certain c++ Qt features as they are requested by users – i wonder how do you see the overall problem with this crate that certain QML features depends on c++ side implementaions.

See my original problem was that i need QSyntaxHighlighter to proberly Higlight Text in my QML TextArea ... i can already do that with html rich text but that breaks QTextCursor::setPosition ... etc. but i foresaw i need an easier alternative and that is just using a webview and implement a TextArea myself.

But that is just solving my problem. How do you see that problem gets handled in the future? Just say: "this crate is called qml-rust not qt-rust this is focusing on qml" i am ok with that as i see myself no easy other way.

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

No branches or pull requests

2 participants