Hi Michael,

By using 'Deploy as RPM packages' the required packages were installed, however 
another error came up:


[D] QQmlDebuggingEnabler::QQmlDebuggingEnabler:1455 - QML debugging is enabled. 
Only use this in a safe environment.


[D] QWaylandEglClientBufferIntegration::QWaylandEglClientBufferIntegration:62 - 
Using Wayland-EGL


[W] Silica::ThemePrivate::ThemePrivate:411 - No pixel ratio defined. Check your 
device configuration!


[W] Silica::ThemePrivate::ThemePrivate:426 - Defaulting to pixel ratio 1.0


[W] Silica::ThemePrivate::ThemePrivate:432 - Defaulting to webview scaling 
factor of 1.0


[W] DeclarativeImageProvider::DeclarativeImageProvider:104 - No pixel ratio 
defined. Check your device configuration!


[W] DeclarativeImageProvider::DeclarativeImageProvider:109 - Defaulting to 
pixel ratio 1.0


bash: line 1: 5655 Segmentation fault DISPLAY=':0.0' QT_NO_JOURNALD_LOG='1' 
/usr/bin/test


Application finished with exit code 139.








Cheers,
Dylan


-------- Original Message --------
Subject: Re: [SailfishDevel] How to use sailfish-components-webview
Local Time: December 3, 2016 5:54 PM
UTC Time: December 3, 2016 4:54 PM
From: dylan.van.ass...@protonmail.com
To: Sailfish OS Developers <devel@lists.sailfishos.org>

Hi Michael,

Compiling works now :)
However, when I try to install the RPM on the emulator (as target) I get this 
on launch:

unknown:44 - file:///opt/sdk/test/usr/share/test/qml/test.qml:44:1: module 
"Sailfish.WebView" is not installed


import Sailfish.WebView 1.0




Sailfish.Webview component is not installed... I added these lines in the yaml 
file:
Requires:
- sailfishsilica-qt5 >= 0.10.9
- sailfish-components-webview-qt5 >= 0.0.1
- sailfish-components-webview-qt5-devel >= 0.0.1
- sailfish-components-webview-qt5-pickers >= 0.0.1
- sailfish-components-webview-qt5-popups >= 0.0.1


And as written in the README on Github in the .pro file I added the following:
CONFIG += sailfishapp \
link_pkgconfig

PKGCONFIG += qt5embedwidget


I'm missing something but I don't know what...

Cheers,
Dylan









-------- Original Message --------
Subject: Re: [SailfishDevel] How to use sailfish-components-webview
Local Time: December 3, 2016 5:27 PM
UTC Time: December 3, 2016 4:27 PM
From: mic...@gmx.at
To: devel@lists.sailfishos.org

Hi Dylan,

I guess you have to install webview component in the target:

https://lists.sailfishos.org/pipermail/devel/2016-July/007318.html

and maybe then restart qtcreator.
The code highlighting/completion depends on the currently selected kit (i486/
arm). So if you're just using the emulator during testing and coding its
enough to install webview just in i486.

cheers, Michael.




On Samstag, 3. Dezember 2016 10:41:01 CET Dylan Van Assche wrote:
> Hi developers,
>
> I was looking to this new component which is available since the 2.0.5
> release: https://github.com/sailfishos/sailfish-components-webview I tried
> to import it into my project with this:
> import Sailfish.Webview 1.0
> However QTCreator can't find this plugin, I guess I need to install it
> manually in QTCreator? I already installed the component in the MER SDK by
> running the following command: zypper install
> sailfish-components-webview-qt5 sailfish-components-webview-qt5-devel
> sailfish-components-webview-qt5-pickers
> sailfish-components-webview-qt5-popups -y They installed fine without any
> problem on the 2.0.5 SDK release.
>
> But still QTCreator can't find the plugin: QML module not found (when I
> hover my mouse over the import statement).
>
> Someone who knows the trick here to fix this?
>
> Kind regards,
> Dylan Van Assche


_______________________________________________
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org
_______________________________________________
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Reply via email to