<?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[Canvas &#x2F; Context2D in Qt4.8]]></title><description><![CDATA[<p dir="auto">With a project I need to use the <em>very</em> old Qt4.8 and I cannot use the <code>Canvas</code> object to draw with <code>Context2D</code>. I tried to search in the docs but I'm not sure what was the right method on that release.</p>
]]></description><link>https://forum.qt.io/topic/88914/canvas-context2d-in-qt4-8</link><generator>RSS for Node</generator><lastBuildDate>Mon, 09 Nov 2026 05:04:06 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/88914.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 18 Mar 2018 14:42:42 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Canvas &#x2F; Context2D in Qt4.8 on Sun, 18 Mar 2018 22:13:50 GMT]]></title><description><![CDATA[<p dir="auto">The documentation has changed a bit. The links have been updated.</p>
]]></description><link>https://forum.qt.io/post/447993</link><guid isPermaLink="true">https://forum.qt.io/post/447993</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Sun, 18 Mar 2018 22:13:50 GMT</pubDate></item><item><title><![CDATA[Reply to Canvas &#x2F; Context2D in Qt4.8 on Sun, 18 Mar 2018 22:01:58 GMT]]></title><description><![CDATA[<p dir="auto">Most of the link lead to error 404. I will try to Google them. Thanks</p>
]]></description><link>https://forum.qt.io/post/447991</link><guid isPermaLink="true">https://forum.qt.io/post/447991</guid><dc:creator><![CDATA[Mark81]]></dc:creator><pubDate>Sun, 18 Mar 2018 22:01:58 GMT</pubDate></item><item><title><![CDATA[Reply to Canvas &#x2F; Context2D in Qt4.8 on Sun, 18 Mar 2018 21:58:01 GMT]]></title><description><![CDATA[<p dir="auto">You'll have to do a "reverse port". See here for the <a href="https://wiki.qt.io/QML1-vs-QML2" target="_blank" rel="noopener noreferrer nofollow ugc">differences between QtQuick 1 and 2</a></p>
]]></description><link>https://forum.qt.io/post/447990</link><guid isPermaLink="true">https://forum.qt.io/post/447990</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Sun, 18 Mar 2018 21:58:01 GMT</pubDate></item><item><title><![CDATA[Reply to Canvas &#x2F; Context2D in Qt4.8 on Sun, 18 Mar 2018 21:52:14 GMT]]></title><description><![CDATA[<p dir="auto">Something like this:</p>
<pre><code>Canvas {
        id: canvas
        anchors.fill: parent

        onPaint: {
            var ctx = canvas.getContext('2d');
            ctx.reset();

            ctx.lineWidth = 4;
            ctx.strokeStyle = "red"
            ctx.beginPath()
            ctx.moveTo(root.width / 2, 24)
            ctx.lineTo(root.width * 0.9, 24)
            ctx.stroke()

            ctx.beginPath()
            ctx.fillStyle = "red"
            ctx.arc(root.width * 0.9, 24, 6, 0, 360)
            ctx.fill()
     }
}
</code></pre>
]]></description><link>https://forum.qt.io/post/447989</link><guid isPermaLink="true">https://forum.qt.io/post/447989</guid><dc:creator><![CDATA[Mark81]]></dc:creator><pubDate>Sun, 18 Mar 2018 21:52:14 GMT</pubDate></item><item><title><![CDATA[Reply to Canvas &#x2F; Context2D in Qt4.8 on Sun, 18 Mar 2018 21:49:24 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">What are you trying to do ?</p>
]]></description><link>https://forum.qt.io/post/447988</link><guid isPermaLink="true">https://forum.qt.io/post/447988</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Sun, 18 Mar 2018 21:49:24 GMT</pubDate></item></channel></rss>