Details
-
Bug
-
Resolution: Fixed
-
P4: Low
-
4.6.3, 5.15.6
-
None
-
Platform: Ubuntu lucid/GNOME, Theme: Ambiance (default), System-wide Application Font SIze: 9pt
Other case: Windows 10
-
-
b6ca35f65 (dev), b63615ca6 (6.8), 0a1c17114 (dev), fc96ce3a2 (6.8)
Description
When setting CalendarPopup to true for a QDateEdit the minimumSizeHint does not increase in width.
This is a problem because the widget's button size increases (see screenshots) causing the date to not get enough space.
The problem is caused by QDateTimeEdit inheriting and using QAbstractSpinBox.
This a design flaw as it is a combobox, not a spinbox when CalendarPopup is true.
To fix this:
1) A QAbstractComboBox must be developed
2) QDateTimeEdit must inherit QWidget, not QAbstractSpinBox
3) QAbstractSpinBox or QAbstractComboBox must be applied based on the value of CalendarPopup
The current QDateTimeEdit class is BROKEN and is based on a FLAWED DESIGN.
Attachments
Issue Links
- is duplicated by
-
QTBUG-114527 QDateEdit/CalendarPopup(true) has wrong size hint
- Closed
- relates to
-
QTBUG-130824 Windows11 style: wrong size hint for (editable) QComboBox
- Closed
For Gerrit Dashboard: QTBUG-11967 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
601686,4 | QDateTimeEdit: use correct size hint when calendarPopup is enabled | dev | qt/qtbase | Status: MERGED | +2 | 0 |
601687,3 | Windows11Style: fix sizehint for QComboBox | dev | qt/qtbase | Status: MERGED | +2 | 0 |
602016,2 | Windows11Style: fix sizehint for QComboBox | 6.8 | qt/qtbase | Status: MERGED | +2 | 0 |
602664,2 | QDateTimeEdit: use correct size hint when calendarPopup is enabled | 6.8 | qt/qtbase | Status: MERGED | +2 | 0 |