Hi, No I haven’t got it working. I really think that this is a bug, either with the provider or with documentation (if this is dropped feature). I’ve tried pretty much all the different options for setting the source image path, but it fails always. I still have the code in my app so maybe one day it starts to work again :) But I would like to get confirmation that is this going to be supported or not.
-- Tero David Reinhold <da...@reinholds.se> kirjoitti 19.11.2013 kello 23.54: > Hi, > > I’m having problems with this as well. Did you manage to solve this problem > Tero? The image shows up just fine without the provider but when using the > provider I get: > QFSFileEngine::open: No file name specified > QFSFileEngine::open: No file name specified > DeclarativeGlassImageProvider::requestImage(): source image "" is not > available. > > Could it have something to do with how the path is specified? I specified an > absolute path. Should it be relative and if so, relative from what? > > Regards, > David > > 24 okt 2013 kl. 21:15 skrev Tero Siironen <tero.siiro...@iki.fi>: > >> 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 > _______________________________________________ SailfishOS.org Devel mailing list