I suppose this qualifies as regarding Qt Designer, althought it's maybe a general programming issue.
I have 5 lines where the user is supposed to select up to 5 different files (see screenshots). The structure is all the same except that the last two files have an additional check box associated with them (currently textless).
I would like the 5 file names to appear exactly beneath each other in the same column, regardless of whether they have a check box or not.
To achieve that, I've placed the 5 groups in 5 horizontal layouts, put horizontal spacers in place of the check box for the first 3 groups and set the stretch factors of the elements to the exact same values for all 5 layouts (2,5,25,4,4 in this case).
Still, the file text in the groups with check boxes is not in line with the others but offset to the right.
The check boxes are not at their minimum size, so they could shrink to give the desired behaviour. If I decrease their stretch factor, I get the same effect in the other direction, i.e. an offset to the left side.
I noticed that there is also a visual offset already in design mode, albeit apparently less pronounced (at least to my eye).
Have I missed something about layout logic ?
What can I do ?
Thank you !
Bookmarks