<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span>Hi</span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;"><span><br></span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;"><span>You can also add the image to your resource qrc file, then you can do something like </span><span style="color: rgb(0, 128, 0); font-size: 12pt; background-color: transparent;">"qrc:/images/Bukshka.png"</span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;">This avoids problems with shadow build, because often the path to image is correct, but the
error ocurs because the executable file is in the shadow build directory and can't find the relative path to the image.</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;">João de Deus</div><div><br></div> <div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"> <div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"> <div dir="ltr"> <hr size="1"> <font size="2" face="Arial"> <b><span style="font-weight:bold;">De:</span></b> Boris Pohler <boris@pohlers-web.de><br> <b><span style="font-weight: bold;">Para:</span></b> devel@lists.sailfishos.org <br> <b><span style="font-weight: bold;">Enviadas:</span></b>
Sábado, 25 de Maio de 2013 12:01<br> <b><span style="font-weight: bold;">Assunto:</span></b> Re: [SailfishDevel] Can't change default cover<br> </font> </div> <div class="y_msg_container"><br>The path must be set relative to the directory, where your qml file is.<br>For example, if your project structure is like:<br><br>project/<br> qml/Cover.qml<br> qml/...<br> images/my_pic.png<br> ...<br><br>your path in the qml-file should be ../images/my_pic.png<br> <br><br>Am Samstag, den 25.05.2013, 14:52 +0400 schrieb Иван Черненький:<br>> Hello everybody!<br>> <br>> i tryed to change default cover in example component-gallery and it<br>> doesn't work. I changed path in Cover.qml to picture to full path, it<br>> was an error:<br>> file:///usr/lib/qt4/imports/Sailfish/Silica/CoverPlaceholder.qml:44:5:<br>> QML Image: Failed to get image from provider: image:<br>>
c:UsersJonnyPicturesBukshka.png<br>> <br>> Copyed picture to root catalog of example, won't work either. that<br>> what he said:<br>> file:///usr/lib/qt4/imports/Sailfish/Silica/CoverPlaceholder.qml:44:5:<br>> QML Image: Failed to get image from provider: image:Bukshka.png<br>> <br>> Best regards,<br>> Ivan<br>> _______________________________________________<br>> SailfishOS.org Devel mailing list<br><br><br>_______________________________________________<br>SailfishOS.org Devel mailing list<br><br></div> </div> </div> </div></body></html>