QLabel word wrap minimum width inconsistent
Unsolved
General and Desktop
-
Hi,
I'm new to Qt development. I'm trying to display a list of name-value pairs. Each pair is input into 2 QLables separately, which are all in a QGridLayout. What I noticed is that when wordWrap is enabled, QLabel's minimum width is different depending the length of its text.
Has anyone else run into this issue? Is there way to set a consistent minimum width for every QLabels?
Thanks,
Lin -
You can look into: setColumnMinimumWidth. It's not a perfect answer, but it might be enough for you.
-
Hi
We also talked aout word wrap here.In any case, why simply not use a tableWidget ?
Instead of a lot of labels in a layout ?