View Full Version : QTableWidget font shrink on text wrap
Imhotep
8th August 2016, 13:21
When QTableWidget cell content is wrapped, his font is shrinked (http://imgur.com/uo9ABUA). To avoid this behaviour, I tried this
tw->setStyleSheet("font-size: 90%;");
With no results. Any solution?
ChrisW67
12th August 2016, 22:16
Your screenshot does show any wrapped text. Do you mean that you would like it to wrap where it is currently elided (that is cut sho...)? If so you can look at setWordWrapped() on the view or use a custom delegate to format the cell items to your liking.
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.