SUMMARY Kirigami.FormData.buddyFor could be used to align label with an element in the form. Not sure when it changed, but it doesn't work anymore. STEPS TO REPRODUCE Simplest example would be from Kirigami Gallery app. In FormLayoutGallery, use the following with the radio buttons: ``` ColumnLayout { Layout.rowSpan: 3 Kirigami.FormData.label: "Label for radios:" Kirigami.FormData.buddyFor: firstRadio RadioButton { checked: true text: "One" } RadioButton { text: "Two" } RadioButton { id: firstRadio text: "Three" } } ``` Notice that the `firstRadio` id is moved to the last RadioButton. Unfortunately, label is still aligned by the top. I have not tested it in the Gallery app, but used it in Pure Maps. There the functionality got broken and noticed. SOFTWARE/OS VERSIONS KDE Frameworks Version: kde-frameworks/kirigami 5.70 Qt Version: 5.14.2
I don't think that ever worked. buddyfor was designed to have the same meaning as QWidget's form layout buddies, its scope is to give focus to its buddie when the label is activated with own accelerator, for instance when the text contains an &
This exact thing is working as expected in Kirigami Gallery now on the Form Layout page. If it's still not working in Pure Maps, can you share the code that isn't working?