Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.0.0
-
None
-
cd0c9ae4ccc43503b6d8fb93bc87092cfa328adc 2a6e105f43885e0901c252bffc77bd1c9db87b67
Description
The scene graph clips items using their boundingRect()'s. Text and Image both return a boundingRect large enough to contain their content so the clip rect is never smaller than the content and nothing is clipped.
The below should be clipped at 10 pixels but isn't.
Item { width: 300; height: 40 Text { width: 10 text: "some text that's more than 10 pixels wide" clip: true } }