How to make the QLABEL words space to be smaller
-
I put the text into the QLABEL ,
I adjusted the size by using the stylesheet.But it seemed too wide between the words(not the line height or margins of the qlabel),So how to fix the problem?
the setIndent() seemed unuseful. -
I put the text into the QLABEL ,
I adjusted the size by using the stylesheet.But it seemed too wide between the words(not the line height or margins of the qlabel),So how to fix the problem?
the setIndent() seemed unuseful.@nicker-player you can set a different word spacing for your font: https://doc.qt.io/qt-6/qfont.html#setWordSpacing
-
@nicker-player you can set a different word spacing for your font: https://doc.qt.io/qt-6/qfont.html#setWordSpacing
@sierdzio
I got it.And if I want to set the word spacing in the stylesheet.What should I do?
Is there any options to set the word spacing of the qfont style? -
@sierdzio
I got it.And if I want to set the word spacing in the stylesheet.What should I do?
Is there any options to set the word spacing of the qfont style?@nicker-player said in How to make the QLABEL words space to be smaller:
@sierdzio
I got it.And if I want to set the word spacing in the stylesheet.What should I do?
Is there any options to set the word spacing of the qfont style?I don't think it is possible to do in QSS. The documentation does not mention such possibility.