Re: [Interest] Qml Canvas is too slow

2019-11-04 Thread Christoph Keller
If this is just about drawing squares, you can also use a *GridView* or *Repeater* and repeat a delegate of *Rectangle*s. If that's not fast enough, Jérôme Godbout approach also sounds good. Alternatively, you should prefer *QtQuick.Shapes* to *Canvas*:

Re: [Interest] Qml Canvas is too slow

2019-11-01 Thread Mitch Curtis
There are a few articles online about improving its performance that should also apply to Qt. I just picked the first three I found: - https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API/Tutorial/Optimizing_canvas - https://www.html5rocks.com/en/tutorials/canvas/performance/ -

Re: [Interest] Qml Canvas is too slow

2019-10-31 Thread Jason H
Very simply, you don't have to repaint the entire thing every time. You can paint the squares, then fill them in one by one. You're essentiallt re-drawing over already dorawn pixels.     Sent: Thursday, October 31, 2019 at 11:42 AM From: "Alexander Dyagilev" To: "interest@qt-project.org"

Re: [Interest] Qml Canvas is too slow

2019-10-31 Thread Nuno Santos
Alexander, Why do you want to stick to pure Qml? What are the reasons? -- Nuno Santos No dia 31/10/2019, às 18:13, Alexander Dyagilev escreveu: > Thanks for the answer. > > This means I'll have to use c++. But I was asking for a way to stick with a > pure QML. > > > >> On 10/31/2019

Re: [Interest] Qml Canvas is too slow

2019-10-31 Thread Jérôme Godbout
x8Ig> From: Interest On Behalf Of Alexander Dyagilev Sent: October 31, 2019 2:13 PM To: Nuno Santos Cc: interest@qt-project.org Subject: Re: [Interest] Qml Canvas is too slow Thanks for the answer. This means I'll have to use c++. But I was asking for a way to stick with a pure QML. On 1

Re: [Interest] Qml Canvas is too slow

2019-10-31 Thread Alexander Dyagilev
Thanks for the answer. This means I'll have to use c++. But I was asking for a way to stick with a pure QML. On 10/31/2019 7:52 PM, Nuno Santos wrote: Alexander, You should use QtQuick Scene Graph. It will be 100x faster. Look for examples on QtCreator under the welcome tab. Use the

Re: [Interest] Qml Canvas is too slow

2019-10-31 Thread Nuno Santos
Alexander, You should use QtQuick Scene Graph. It will be 100x faster. Look for examples on QtCreator under the welcome tab. Use the search input box and write “scene graph”. Scene Graph - Custom Geometry Scene Graph - Graph If it is the first time, it might look confusing but it will pay