PDA

View Full Version : Line heights in QGridlayout



uha
26th July 2017, 08:48
Hello everybody,

I have the following problem:

In a QScrollArea is a QSplitter. In this splitter 2 widgets are added. The left widget contains a number of QLabels in a grid layout, which are vertically oriented. The right widget contains some QLineEdit, combo boxes, and QTextEdits. My problem is that I do not get the labels on the left at the height of the object on the right. Is something difficult to describe, so I have a graphic depicted:

12524

The splitter must be unfortunately, since in the label longer texts can stand and one must also be able to reduce. Do you have an idea how I can solve this or do you have a suggestion how I could solve that better?

Thanks and regards
uha

Added after 1 6 minutes:

Problem solved. The QLabels miss a setFixedHeight with the height of the right side and then it goes.