qt - How to flip RadioButton? -
is possible flip radiobutton? default circle aligned left , text aligned right. i'd position text left , circle right. layoutmirroring.childreninherit: true position text left, circle still on left.
column { id: column1 x: -265 y: 219 width: 104 height: 45 spacing: 5 layoutmirroring.enabled: true layoutmirroring.childreninherit: true exclusivegroup { id: diamtypes } radiobutton { text: "one"; exclusivegroup: diamtypes } radiobutton { text: "two"; exclusivegroup: diamtypes } }
add text item (with desired name) within radiobutton item , give relative x , y position it. leave text property of radiobutton blank.
radiobutton { id: radiobuttonid x: 319 // button position y: 46 text { x: -60 // relative text position radio button y: 3 text: "radio button" font.pointsize: 8 color: "black" } }
Comments
Post a Comment