Smoothly rotate a Rectangle in QML
-
I need to make a rectangle and rotate it a bit (5-10 degrees), but I'm getting a weird non-smooth result.
Is it a way to make it smooth?
QML code:
@Rectangle {
smooth: true
transform: Rotation {
angle: 5
}
}@Setting or removing smooth does nothing. Setting or removing any of render hints does nothing.
I'm using Qt 4.8.1 on Linux. -
You mean the jagged edges? You should set the antialiasing property, not smooth.
-
How can I set the antialiasing property?
-
@Rectangle {
...
antialiasing: true
}@ -
Cannot assign to non-existent property "antialiasing". As expected.
-
Ah, you are using Qt4... it seems there is no such property in QtQuick 1...