Details
-
Suggestion
-
Resolution: Unresolved
-
P4: Low
-
None
-
4.7.3, 5.2.1, 5.7.0
-
Linux Ubuntu 11.04 32bits, Qt SDK 1.1, Qt 4.7.3
Description
QML Rectangle does not support enough styling properties, compared to what a simple QWidget used to offer through CSS:
In QML you can set borderWidth (border-width in CSS) and borderColor (equivalent to border-color in CSS),
but this set all the sides the same border. It would better allow like CSS changing all sides OR side-by-side:
borderWidth.left, borderWidth.top, borderWidth.right, borderWidth.bottom
borderColor.left, borderColor.top, borderColor.right, borderColor.bottom
Same problem with rounded corners, QML support only setting the same rounding on 4 corners, it lacks subproperties :
borderRadius.topLeft, borderRadius.topRight, borderRadius.bottomRight, borderRadius.bottomLeft
It would be nice if it may get fixed really soon, because I really need this to create good looking skins,
and I don't want to use borderImage to solve the issue, since I don't want to use any pixmap to skin the apps.
At the moment I just can't fix the issue so I must keep stuck on QWidget, and I likely will until it get fixed.
Attachments
Issue Links
- relates to
-
QTBUG-48774 Add a radius property for each corner of a Rectangle
-
- Closed
-
- replaces
-
QTBUG-19221 Individual borders for each side
-
- Closed
-
-
QTBUG-38689 Allows rectangle borders to be specified independently
-
- Closed
-