[SailfishDevel] Communicate with WebView

Alexey Andreyev yetanotherandreyev at gmail.com
Mon Mar 26 09:56:57 UTC 2018


Hi!

Attaching file with example.

But, anyway, if you are trying to create markdown editor it is much easier
and appropriate to use native api (not webkit/webengine):
https://github.com/pbek/qmarkdowntextedit/blob/develop/markdownhighlighter.h

2018-03-26 12:31 GMT+03:00 Michael Fuchs <michfu at gmx.at>:

> Hi sailors,
>
> is there a way to communicate with a WebView?
>
> I would like to make something like this:
> https://doc.qt.io/qt-5.6/qtwebengine-webenginewidgets-markdo
> wneditor-example.html
>
> ...but WebChannels don't seem to be available.
>
> Also WebView.runJavaScript() isn't there.
>
> Thanks a lot,
>
> Michael.
> _______________________________________________
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to devel-unsubscribe at lists.sailfi
> shos.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.sailfishos.org/pipermail/devel/attachments/20180326/39532d02/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SilicaEvaluateJavaScript.qml
Type: text/x-qml
Size: 684 bytes
Desc: not available
URL: <https://lists.sailfishos.org/pipermail/devel/attachments/20180326/39532d02/attachment.bin>


More information about the Devel mailing list