> Sent: Friday, March 25, 2016 at 5:14 AM
> From: "Nikita Krupenko" <krne...@gmail.com>
> To: interest@qt-project.org
> Subject: Re: [Interest] Canvas keeping artifacts
>
> 2016-03-24 15:49 GMT+02:00 Jason H <jh...@gmx.com>:
> > By the way
2016-03-24 15:49 GMT+02:00 Jason H :
> By the way, reset() is not a W3C function, and it's also not in the QML
> Canvas documentation.
>
> I'm wondering how you found it?
In fact, it is in the doc:
https://doc.qt.io/qt-5/qml-qtquick-context2d.html#reset-method
;
> *Sent:* Thursday, March 24, 2016 at 9:42 AM
> *From:* "Jason H" <jh...@gmx.com>
> *To:* "Jérôme Godbout" <jer...@bodycad.com>
>
> *Cc:* "interest@qt-project.org Interest" <interest@qt-project.org>
> *Subject:* Re: [Interest] Canvas
quot;interest@qt-project.org Interest" <interest@qt-project.org>
Subject: Re: [Interest] Canvas keeping artifacts
ctx.reset(); fixes it.
Again, I think you have meaningless statements.
ctx.beginPath(); // It's not a path
ctx.fillStyle = 'rgba(0,0,0,0)'; // it's not using fillStyle
, March 23, 2016 at 6:21 PM
From: "Jérôme Godbout" <jer...@bodycad.com>
To: "Jason H" <jh...@gmx.com>
Cc: "interest@qt-project.org Interest" <interest@qt-project.org>
Subject: Re: [Interest] Canvas keeping artifacts
Canvas
{
id: c
your code, no luck.
It looks like the Black Sabbath - Paraoid album cover.
Sent: Wednesday, March 23, 2016 at 5:11 PM
From: "Jérôme Godbout" <jer...@bodycad.com>
To: "Jason H" <jh...@gmx.com>
Cc: "interest@qt-project.org Interest" <interest@qt-projec
You may want to clear fill with blank transparency:
ctx.fillStyle = 'rgba(0,0,0,0)';
ctx.clearRect(0,0,width,height);
ctx.fill();
for me it did the trick.
On Wed, Mar 23, 2016 at 4:54 PM, Jason H wrote:
> I have a very simple pause button:
> Canvas {
>
I have a very simple pause button:
Canvas {
id: pauseCanvas
anchors.fill: parent
onWidthChanged: requestPaint()
onHeightChanged: requestPaint()
onPaint: {
var ctx = getContext('2d');