When QTableWidget cell content is wrapped, his font is shrinked. To avoid this behaviour, I tried this
Qt Code:
tw->setStyleSheet("font-size: 90%;");To copy to clipboard, switch view to plain text mode
With no results. Any solution?
When QTableWidget cell content is wrapped, his font is shrinked. To avoid this behaviour, I tried this
Qt Code:
tw->setStyleSheet("font-size: 90%;");To copy to clipboard, switch view to plain text mode
With no results. Any solution?
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.
Bookmarks