[Solved] SpinBox with in RowLayout
-
wrote on 15 Mar 2014, 11:22 last edited by
I add some simple spinbox in a row layout, but the behaviour seems buggy, the spinbox with (implicit width i assume) is broken:
@
RowLayout {
SpinBox { value: 55 }
SpinBox { decimals: 2 }
SpinBox { minimumValue: 10.2; maximumValue: 10.5; stepSize: 0.01; decimals: 3 }
SpinBox { minimumValue: 0; maximumValue: 100; value: 33; suffix: "%" }
SpinBox { value: 33; enabled: false }
SpinBox { prefix: "prefix"; suffix: "suffix"; value: 22 }Item { Layout.fillWidth: true } }
@
!https://dl.dropboxusercontent.com/u/28758727/spinbox.PNG(screenshot)!
-
wrote on 25 Mar 2014, 14:35 last edited by
I get similar results here.
a workaround could be to use a style and set implicitWidth for it yourself.
Anyway, you can check also on "JIRA":https://bugreports.qt-project.org/secure/Dashboard.jspa for a reported bug. In case you cannot find anything reported there yet, please file a bug report.
Please add a link to this thread there and put a tag with the bugreport number here as a tag.
-
wrote on 25 Mar 2014, 15:43 last edited by
Thanks,
workaround is goodBug reported:
https://bugreports.qt-project.org/browse/QTBUG-37797 -
wrote on 25 Mar 2014, 18:47 last edited by
You're welcome.
Thanks for the bug report!
-
wrote on 1 Apr 2014, 12:01 last edited by
It has been corrected in 5.3 beta :)
-
wrote on 1 Apr 2014, 12:28 last edited by
Thanks for the feedback here. Well appreciated!