<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Problem using SVGs in a BorderImage on the N950]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I've been using SVGs in my BorderImages on Symbian like this:</p>
<p dir="auto">@<br />
BorderImage {<br />
source: "border.svg"<br />
sourceSize: Qt.size(10, 10)<br />
width: 100<br />
height: sourceSize.height<br />
border {<br />
top:    1.5<br />
right:  1.5<br />
bottom: 1.5<br />
left:   1<br />
}<br />
}<br />
@</p>
<p dir="auto">This rasterizes the SVG in the size I want and then uses the borders to stretch the image the way I want. Works perfectly.</p>
<p dir="auto">Now when taking my project over to Harmattan Meego. Which is using QtQuick 1.1 if I'm not mistaken the log tells me that:<br />
@<br />
Invalid property assignment: "sourceSize" is a read-only property<br />
@</p>
<p dir="auto">Why has this changed? Is there some other way I'm supposed to use my SVGs with BorderImage that I'm not aware of?</p>
]]></description><link>https://forum.qt.io/topic/7959/problem-using-svgs-in-a-borderimage-on-the-n950</link><generator>RSS for Node</generator><lastBuildDate>Wed, 17 Jun 2026 22:05:30 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/7959.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 26 Jul 2011 16:40:13 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Problem using SVGs in a BorderImage on the N950 on Thu, 28 Jul 2011 06:34:32 GMT]]></title><description><![CDATA[<p dir="auto">Yeah, maybe that's true. Thanks for the replies!</p>
]]></description><link>https://forum.qt.io/post/102298</link><guid isPermaLink="true">https://forum.qt.io/post/102298</guid><dc:creator><![CDATA[h3nk3]]></dc:creator><pubDate>Thu, 28 Jul 2011 06:34:32 GMT</pubDate></item><item><title><![CDATA[Reply to Problem using SVGs in a BorderImage on the N950 on Wed, 27 Jul 2011 17:43:46 GMT]]></title><description><![CDATA[<p dir="auto">I'm wondering (pure speculation) if it wasn't so much of a recent introduction that it's read-only but rather it might have been designed to be read-only from the beginning, but was mistakenly allowed to be modified on Symbian.</p>
<p dir="auto">I don't have the code or docs for both side-by-side at the moment, though.  So, like I said, it's just a thought right now.</p>
]]></description><link>https://forum.qt.io/post/102199</link><guid isPermaLink="true">https://forum.qt.io/post/102199</guid><dc:creator><![CDATA[mlong]]></dc:creator><pubDate>Wed, 27 Jul 2011 17:43:46 GMT</pubDate></item><item><title><![CDATA[Reply to Problem using SVGs in a BorderImage on the N950 on Wed, 27 Jul 2011 16:33:54 GMT]]></title><description><![CDATA[<p dir="auto">Yes that's actually what I've been doing today.</p>
<p dir="auto">But still wondering why this limitation was introduced though.</p>
]]></description><link>https://forum.qt.io/post/102185</link><guid isPermaLink="true">https://forum.qt.io/post/102185</guid><dc:creator><![CDATA[h3nk3]]></dc:creator><pubDate>Wed, 27 Jul 2011 16:33:54 GMT</pubDate></item><item><title><![CDATA[Reply to Problem using SVGs in a BorderImage on the N950 on Wed, 27 Jul 2011 16:32:54 GMT]]></title><description><![CDATA[<p dir="auto">You could possibly look into using a "QDeclarativeImageProvider":<a href="http://doc.qt.nokia.com/4.7/qdeclarativeimageprovider.html" target="_blank" rel="noopener noreferrer nofollow ugc">http://doc.qt.nokia.com/4.7/qdeclarativeimageprovider.html</a> to rasterize your SVGs to a given size that could then be scaled.</p>
]]></description><link>https://forum.qt.io/post/102184</link><guid isPermaLink="true">https://forum.qt.io/post/102184</guid><dc:creator><![CDATA[mlong]]></dc:creator><pubDate>Wed, 27 Jul 2011 16:32:54 GMT</pubDate></item><item><title><![CDATA[Reply to Problem using SVGs in a BorderImage on the N950 on Wed, 27 Jul 2011 10:29:08 GMT]]></title><description><![CDATA[<p dir="auto">[quote author="h3nk3" date="1311760656"]Actually the documentation for Harmattan states this for the BorderImage element:<br />
@<br />
sourceSize : QSize<br />
@<br />
[/quote]</p>
<p dir="auto">What is interesting is that for all read-only properties.. the documentation standard is something like this</p>
<p dir="auto">@<br />
sourceSize : QSize read-only<br />
@</p>
<p dir="auto">Its confusing to see that its not followed though-out.</p>
]]></description><link>https://forum.qt.io/post/102124</link><guid isPermaLink="true">https://forum.qt.io/post/102124</guid><dc:creator><![CDATA[thisisbhaskar]]></dc:creator><pubDate>Wed, 27 Jul 2011 10:29:08 GMT</pubDate></item><item><title><![CDATA[Reply to Problem using SVGs in a BorderImage on the N950 on Wed, 27 Jul 2011 09:57:36 GMT]]></title><description><![CDATA[<p dir="auto">Actually the documentation for Harmattan states this for the BorderImage element:</p>
<p dir="auto">@<br />
sourceSize : QSize</p>
<p dir="auto">This property holds the actual width and height of the loaded image.</p>
<p dir="auto">In BorderImage, this property is read-only.</p>
<p dir="auto">See also Image::sourceSize.<br />
@</p>
<p dir="auto">But my question is why has this changed from previous versions of QtQuick?</p>
<p dir="auto">It's not backwards compatible either (I cannot just write import QtQuick 1.0 and everything works as before).</p>
]]></description><link>https://forum.qt.io/post/102111</link><guid isPermaLink="true">https://forum.qt.io/post/102111</guid><dc:creator><![CDATA[h3nk3]]></dc:creator><pubDate>Wed, 27 Jul 2011 09:57:36 GMT</pubDate></item><item><title><![CDATA[Reply to Problem using SVGs in a BorderImage on the N950 on Wed, 27 Jul 2011 09:52:47 GMT]]></title><description><![CDATA[<p dir="auto">Very strange as sourceSize is not a read-only property according to the documentation</p>
<p dir="auto"><a href="http://library.developer.nokia.com/topic/MeeGo_1.2_Harmattan_API/html/qt4/qdeclarativeelements.html" target="_blank" rel="noopener noreferrer nofollow ugc">http://library.developer.nokia.com/topic/MeeGo_1.2_Harmattan_API/html/qt4/qdeclarativeelements.html</a></p>
]]></description><link>https://forum.qt.io/post/102109</link><guid isPermaLink="true">https://forum.qt.io/post/102109</guid><dc:creator><![CDATA[thisisbhaskar]]></dc:creator><pubDate>Wed, 27 Jul 2011 09:52:47 GMT</pubDate></item></channel></rss>