Maybe I've should give another subject to this. The problem I have is with 
Glass background, introduced here: 
https://sailfishos.org/sailfish-silica/sailfish-silica-introduction.html I've 
ported my app to Qt5 and everything else works fine, but the image provider for 
Glass background doesn't. So I'm trying to find out if the Glass background is 
still supported or not. Or is there instructions somewhere how to get similar 
effect to Image element. I can live without it, but it gave nice look to the 
list views when current album's art was used as background with the glass 
effect.


-- 
Tero



Jarko Vihriala kirjoitti 24.10.2013 kello 17.33:

> Hi,
> In Qt5 version of Silica there is no DeclarativeGlassImageProvider item as 
> such, the current item names of Silica can be found from plugins.qmltypes of 
> Silica in /usr/lib/qt5/qml/Sailfish/Silica. With quick look closest matching 
> to your request would be DeclarativeGlassItem.
> 
> All in all, if you have Qt4 based application done with Alpha SDK, it should 
> be ported to Qt5 using Alpha-Qt5 SDK as almost everything below the APIs 
> themselves have changed. 
> 
> thanks, Jarko
> ________________________________________
> From: devel-boun...@lists.sailfishos.org [devel-boun...@lists.sailfishos.org] 
> on behalf of Tero Siironen [tero.siiro...@iki.fi]
> Sent: Thursday, October 24, 2013 1:38 PM
> To: devel@lists.sailfishos.org
> Subject: [SailfishDevel] DeclarativeGlassImageProvider
> 
> Hi,
> 
> I've used glass background for my app successfully in the first alpha
> sdk, but since the second alpha sdk, DeclarativeGlassImageProvider hasn't 
> worked.
> 
> Whatever I try to set to source of image element I get error similar to this:
> 
> QFSFileEngine::open: No file name specified
> QFSFileEngine::open: No file name specified
> DeclarativeGlassImageProvider::requestImage(): source image "" is not 
> available.
> qrc:/qml/Silica/AlbumContentPage.qml:66:5: QML Image: Failed to get image 
> from provider: image://glass//home/nemo/.cache/cuteremote/album/127.png
> 
> The code is here:
> Image {
>    id: backgroundImage
>    source: "image://glass/" + __artFileName
>    sourceSize { width: parent.width; height: parent.height }
> }
> 
> where __artFileName changes to correct path 
> (/home/nemo/.cache/cuteremote/album/127.png, file does exists)
> 
> Is the DeclarativeGlassImageProvider still supported, has the API changed or 
> is it just broken?
> 
> 
> --
> Tero

_______________________________________________
SailfishOS.org Devel mailing list

Reply via email to