If you mean to remove overflow of the text that go outside of it parent widget bounding box, you can use clipping: