<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 class="colour" style="color:rgb(170, 0, 0)">unknown:44 - </span><a><span class="colour" style="color:rgb(0, 122, 244)"><u>file:///opt/sdk/test/usr/share/test/qml/test.qml:44:1</u></span></a><span class="colour" style="color:rgb(170, 0, 0)">: 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 class="colour" style="color:rgb(170, 0, 0)">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 class="colour" style="color:rgb(192, 192, 192)">  </span>-<span class="colour" style="color:rgb(192, 192, 192)"> </span>sailfishsilica-qt5<span class="colour" style="color:rgb(192, 192, 192)"> </span>>=<span class="colour" style="color:rgb(192, 192, 192)"> </span>0.10.9<span class="colour" style="color:rgb(192, 192, 192)"> </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 class="colour" style="color:rgb(192, 192, 192)">  </span>-<span class="colour" style="color:rgb(192, 192, 192)"> </span>sailfish-components-webview-qt5<span class="colour" style="color:rgb(192, 192, 192)"> </span>>=<span class="colour" style="color:rgb(192, 192, 192)"> </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 class="colour" style="color:rgb(192, 192, 192)">  </span>-<span class="colour" style="color:rgb(192, 192, 192)"> </span>sailfish-components-webview-qt5-devel<span class="colour" style="color:rgb(192, 192, 192)"> </span>>=<span class="colour" style="color:rgb(192, 192, 192)"> </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 class="colour" style="color:rgb(192, 192, 192)">  </span>-<span class="colour" style="color:rgb(192, 192, 192)"> </span>sailfish-components-webview-qt5-pickers<span class="colour" style="color:rgb(192, 192, 192)"> </span>>=<span class="colour" style="color:rgb(192, 192, 192)"> </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 class="colour" style="color:rgb(192, 192, 192)">  </span>-<span class="colour" style="color:rgb(192, 192, 192)"> </span>sailfish-components-webview-qt5-popups<span class="colour" style="color:rgb(192, 192, 192)"> </span>>=<span class="colour" style="color:rgb(192, 192, 192)"> </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 class="colour" style="color:rgb(128, 0, 128)">CONFIG</span><span class="colour" style="color:rgb(192, 192, 192)"> </span>+=<span class="colour" style="color:rgb(192, 192, 192)"> </span>sailfishapp<span class="colour" style="color:rgb(192, 192, 192)"> </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 class="colour" style="color:rgb(192, 192, 192)">    </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 class="colour" style="color:rgb(128, 0, 128)">PKGCONFIG</span><span class="colour" style="color:rgb(192, 192, 192)"> </span>+=<span class="colour" style="color:rgb(192, 192, 192)"> </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,</div><div>Dylan</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 type="cite" class="protonmail_quote"><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>