<div>Hi Michael,<br></div><div><br></div><div>By using 'Deploy as RPM packages' the required packages were installed, however another error came up:<br></div><div><br></div><p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style="color:rgb(170, 0, 0)" class="colour">[D] QQmlDebuggingEnabler::QQmlDebuggingEnabler:1455 - QML debugging is enabled. Only use this in a safe environment.</span><br></p><p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style="color:rgb(170, 0, 0)" class="colour">[D] QWaylandEglClientBufferIntegration::QWaylandEglClientBufferIntegration:62 - Using Wayland-EGL</span><br></p><p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style="color:rgb(170, 0, 0)" class="colour">[W] Silica::ThemePrivate::ThemePrivate:411 - No pixel ratio defined. Check your device configuration!</span><br></p><p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style="color:rgb(170, 0, 0)" class="colour">[W] Silica::ThemePrivate::ThemePrivate:426 - Defaulting to pixel ratio 1.0</span><br></p><p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style="color:rgb(170, 0, 0)" class="colour">[W] Silica::ThemePrivate::ThemePrivate:432 - Defaulting to webview scaling factor of 1.0</span><br></p><p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style="color:rgb(170, 0, 0)" class="colour">[W] DeclarativeImageProvider::DeclarativeImageProvider:104 - No pixel ratio defined. Check your device configuration!</span><br></p><p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style="color:rgb(170, 0, 0)" class="colour">[W] DeclarativeImageProvider::DeclarativeImageProvider:109 - Defaulting to pixel ratio 1.0</span><br></p><p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style="color:rgb(170, 0, 0)" class="colour"><b>bash: line 1:  5655 Segmentation fault      DISPLAY=':0.0' QT_NO_JOURNALD_LOG='1' /usr/bin/test</b></span><br></p><p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style="color:rgb(170, 0, 0)" class="colour">Application finished with exit code 139.</span><br></p><div><br></div><div class="protonmail_signature_block-empty"><br></div><div class="protonmail_signature_block protonmail_signature_block-empty"><div class="protonmail_signature_block-user protonmail_signature_block-empty"><div><br></div></div><div class="protonmail_signature_block-proton protonmail_signature_block-empty"><br></div></div><div class="protonmail_signature_block-empty"><br></div><div>Cheers,</div><div>Dylan<br></div><div><br></div><blockquote class="protonmail_quote" type="cite"><div>-------- Original Message --------<br></div><div>Subject: Re: [SailfishDevel] How to use sailfish-components-webview<br></div><div>Local Time: December 3, 2016 5:54 PM<br></div><div>UTC Time: December 3, 2016 4:54 PM<br></div><div>From: dylan.van.assche@protonmail.com<br></div><div>To: Sailfish OS Developers <devel@lists.sailfishos.org><br></div><div><br></div><div>Hi Michael,<br></div><div><br></div><div>Compiling works now :)<br></div><div>However, when I try to install the RPM on the emulator (as target) I get this on launch:<br></div><p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style="color:rgb(170, 0, 0)" class="colour">unknown:44 - </span><a><span style="color:rgb(0, 122, 244)" class="colour"><u>file:///opt/sdk/test/usr/share/test/qml/test.qml:44:1</u></span></a><span style="color:rgb(170, 0, 0)" class="colour">: module "Sailfish.WebView" is not installed</span><br></p><p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style="color:rgb(170, 0, 0)" class="colour">import Sailfish.WebView 1.0</span><br></p><p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br></p><div>Sailfish.Webview component is not installed... I added these lines in the yaml file:<br></div><pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Requires:<br></pre><pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style="color:rgb(192, 192, 192)" class="colour">  </span>-<span style="color:rgb(192, 192, 192)" class="colour"> </span>sailfishsilica-qt5<span style="color:rgb(192, 192, 192)" class="colour"> </span>>=<span style="color:rgb(192, 192, 192)" class="colour"> </span>0.10.9<span style="color:rgb(192, 192, 192)" class="colour"> </span><br></pre><pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style="color:rgb(192, 192, 192)" class="colour">  </span>-<span style="color:rgb(192, 192, 192)" class="colour"> </span>sailfish-components-webview-qt5<span style="color:rgb(192, 192, 192)" class="colour"> </span>>=<span style="color:rgb(192, 192, 192)" class="colour"> </span>0.0.1<br></pre><pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style="color:rgb(192, 192, 192)" class="colour">  </span>-<span style="color:rgb(192, 192, 192)" class="colour"> </span>sailfish-components-webview-qt5-devel<span style="color:rgb(192, 192, 192)" class="colour"> </span>>=<span style="color:rgb(192, 192, 192)" class="colour"> </span>0.0.1<br></pre><pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style="color:rgb(192, 192, 192)" class="colour">  </span>-<span style="color:rgb(192, 192, 192)" class="colour"> </span>sailfish-components-webview-qt5-pickers<span style="color:rgb(192, 192, 192)" class="colour"> </span>>=<span style="color:rgb(192, 192, 192)" class="colour"> </span>0.0.1<br></pre><pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style="color:rgb(192, 192, 192)" class="colour">  </span>-<span style="color:rgb(192, 192, 192)" class="colour"> </span>sailfish-components-webview-qt5-popups<span style="color:rgb(192, 192, 192)" class="colour"> </span>>=<span style="color:rgb(192, 192, 192)" class="colour"> </span>0.0.1<br></pre><div><br></div><div>And as written in the README on Github in the .pro file I added the following:<br></div><pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style="color:rgb(128, 0, 128)" class="colour">CONFIG</span><span style="color:rgb(192, 192, 192)" class="colour"> </span>+=<span style="color:rgb(192, 192, 192)" class="colour"> </span>sailfishapp<span style="color:rgb(192, 192, 192)" class="colour"> </span>\<br></pre><pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style="color:rgb(192, 192, 192)" class="colour">    </span>link_pkgconfig<br></pre><pre style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br></pre><pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style="color:rgb(128, 0, 128)" class="colour">PKGCONFIG</span><span style="color:rgb(192, 192, 192)" class="colour"> </span>+=<span style="color:rgb(192, 192, 192)" class="colour"> </span>qt5embedwidget<br></pre><div><br></div><div>I'm missing something but I don't know what...<br></div><div><br></div><div>Cheers,<br></div><div>Dylan<br></div><div class="protonmail_signature_block-empty"><br></div><div class="protonmail_signature_block protonmail_signature_block-empty"><div class="protonmail_signature_block-user protonmail_signature_block-empty"><div><br></div></div><div class="protonmail_signature_block-proton protonmail_signature_block-empty"><br></div></div><div class="protonmail_signature_block-empty"><br></div><div><br></div><div><br></div><blockquote class="protonmail_quote" type="cite"><div>-------- Original Message --------<br></div><div>Subject: Re: [SailfishDevel] How to use sailfish-components-webview<br></div><div>Local Time: December 3, 2016 5:27 PM<br></div><div>UTC Time: December 3, 2016 4:27 PM<br></div><div>From: michfu@gmx.at<br></div><div>To: devel@lists.sailfishos.org<br></div><div><br></div><div>Hi Dylan,<br></div><div><br></div><div>I guess you have to install webview component in the target:<br></div><div><br></div><div>https://lists.sailfishos.org/pipermail/devel/2016-July/007318.html<br></div><div><br></div><div>and maybe then restart qtcreator.<br></div><div>The code highlighting/completion depends on the currently selected kit (i486/<br></div><div>arm). So if you're just using the emulator during testing and coding its <br></div><div>enough to install webview just in i486.<br></div><div><br></div><div>cheers, Michael.<br></div><div><br></div><div><br></div><div><br></div><div><br></div><div>On Samstag, 3. Dezember 2016 10:41:01 CET Dylan Van Assche wrote:<br></div><div>> Hi developers,<br></div><div>> <br></div><div>> I was looking to this new component which is available since the 2.0.5<br></div><div>> release: https://github.com/sailfishos/sailfish-components-webview I tried<br></div><div>> to import it into my project with this:<br></div><div>> import Sailfish.Webview 1.0<br></div><div>> However QTCreator can't find this plugin, I guess I need to install it<br></div><div>> manually in QTCreator? I already installed the component in the MER SDK by<br></div><div>> running the following command: zypper install<br></div><div>> sailfish-components-webview-qt5 sailfish-components-webview-qt5-devel<br></div><div>> sailfish-components-webview-qt5-pickers<br></div><div>> sailfish-components-webview-qt5-popups -y They installed fine without any<br></div><div>> problem on the 2.0.5 SDK release.<br></div><div>> <br></div><div>> But still QTCreator can't find the plugin: QML module not found (when I<br></div><div>> hover my mouse over the import statement).<br></div><div>> <br></div><div>> Someone who knows the trick here to fix this?<br></div><div>> <br></div><div>> Kind regards,<br></div><div>> Dylan Van Assche<br></div><div><br></div><div><br></div><div>_______________________________________________<br></div><div>SailfishOS.org Devel mailing list<br></div><div>To unsubscribe, please send a mail to devel-unsubscribe@lists.sailfishos.org<br></div></blockquote><div><br></div></blockquote><div><br></div>