For example, we have a QLabel with MaximumWidth set to 400.
When we try to display some text with pixel width more than 400, it’s shown cut off.
Is there any way to make QLabel display this string in multiple lines without using QFontMetrics or the like?
For example, we have a QLabel with MaximumWidth set to 400. When we try
Share
If I understood your question correctly, you should use the
setWordWrapfunction for your label, withtrueas its parameter.