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*:
that with QQuickPaintedItem and got a huge speedup, but I'm not sure if
it works the same here.
> -Original Message-
> From: Interest On Behalf Of Alexander
> Dyagilev
> Sent: Thursday, 31 October 2019 5:43 PM
> To: interest@qt-project.org
> Subject: [Interest] Qml Canvas is t
@qt-project.org"
Subject: [Interest] Qml Canvas is too slow
Hello,
The following code is too slow (paint operation takes few seconds):
Canvas {
id: map
width: columnsCount * rectangleSize
height: rowsCount * rectangleSize
anchors.horizonta
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
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
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
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
Hello,
The following code is too slow (paint operation takes few seconds):
Canvas{
id:map
width:columnsCount*rectangleSize
height:rowsCount*rectangleSize
anchors.horizontalCenter:alignCenter?parent.horizontalCenter:undefined
anchors.left:alignCenter?undefined:parent.left