Matrix4x4 QML Type
Oferece uma maneira de aplicar uma matriz de transformação 4x4 a um objeto ` Item`. Mais...
| Import Statement: | import QtQuick |
Propriedades
- matrix : matrix4x4
Descrição detalhada
O tipo Matrix4x4 oferece uma maneira de aplicar uma transformação a um objeto Item por meio de uma matriz 4x4.
Ele permite uma combinação de rotação, escala, translação e inclinação utilizando apenas uma transformação fornecida em uma matriz 4x4.
O exemplo a seguir gira um retângulo em 45 graus (PI/4):
Rectangle {
width: 100
height: 100
color: "red"
transform: Matrix4x4 {
property real a: Math.PI / 4
matrix: Qt.matrix4x4(Math.cos(a), -Math.sin(a), 0, 0,
Math.sin(a), Math.cos(a), 0, 0,
0, 0, 1, 0,
0, 0, 0, 1)
}
}Documentação da propriedade
matrix : matrix4x4
Matriz 4x4 que será utilizada na transformação de um Item
© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.