I use QML Column layout, but I’d like to disable (or decrease) spacing between two elements only. Between the rest the spacing should be left alone.
Is it possible?
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Decreasing is difficult, but increasing the space between two adjacent items is easy: just insert an empty
Itembetween them with the needed additional vertical space (minus the amount of one extra regular spacing, of course) asheight. Don’t forget to also set a non-zerowidthor otherwise the item won’t be taken into account for the layout calculation.With no spacing set for the
Columnitself you can achieve this way every spacing configuration possible. This is obviously a bit hacky, but there is no other way.