Large QML application performance:
-
Hi I am developping a lare area full screen application, with large touch glass area:
2HD screen wide x 5 HD screen high : 3840 x 5400 :For the moment I am using Qt5, QtQuick 1.1. The qraphic card are nvidia quadro, and mosaic feature is active
I am experiencing some performence issue so I am trying to optimise the QML code.
*1./*Which of those 2 codes is the best:
@
property string msLabel1: "1-T. METAL VANNE BP TPA1"
Text{
id:iLabel1
x:50
y:379
text: msLabel1
font.family: __msLabelFontFamily
font.pointSize: __msLabelFontSize
font.bold: false
verticalAlignment: Text.AlignVCenter
}
@@
property alias msLabel1: iLabel1.text--
Text{
id:iLabel1
x:50
y:379
font.family: __msLabelFontFamily
font.pointSize: __msLabelFontSize
font.bold: false
verticalAlignment: Text.AlignVCenter
}
@2./ Is the following code performance consuming even with a scale = 1--?:
@ //Individual Scaling
property real scale: 1.0
transformOrigin:Item.TopLeft
transform:Scale{xScale:scale;yScale:scale}@ -
Better use QtQuick 2 if possible, it will use OpenGL rendering instead of raster.
Why are you using transform? Every Item has "scale" property already built-in. Using custom scaling might have an impact on performance, but I don't really know.