Details
-
Suggestion
-
Resolution: Done
-
Not Evaluated
-
None
-
4.6.3, 4.7.2
-
None
-
8347d4e0bd922e3088ef2d08a47e08bdeff1ab4e
Description
When QItemEditorFactory creates spinbox widgets for integer values and double values, it disables the frame for the widgets. However, spinboxdelegate creates a spinbox with a frame. It is not obvious that one needs to perform setFrame(false) on the delegate widget in order to reproduce the same appearance.
A suggestion would be to add editor->setFrame(false) to line 66 of delegate.cpp in examples/itemviews/spinboxdelegate. This way the appearance is consistent with the default spinboxes created by QItemEditorFactory.
The appearance without a frame is much nicer with the item views in particular.
Attachments
For Gerrit Dashboard: QTBUG-18847 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
34421,1 | Doc: Use QStyledItemDelegate and frameless spinboxes in spinbox delegate example | master | qt/qtbase | Status: MERGED | +2 | 0 |