Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.6, 5.7.0, 5.8.0, 5.9
-
None
-
Ubuntu 16.10, Fedora 25, Windows 7, Windows 10
-
4e01b851159342122d42be1091d4cfa464700a4e (qt/qtbase/5.12)
Description
Unable to set certain dates, for example 2017-3-22 for a QDateEdit object. QDateTimeEdit has same problem. The widget prints this error message to stderr:
QLineEdit::setSelection: Invalid start position (1)
Minimal Sample:
#include <QApplication> #include <QDialog> #include <QDateEdit> #include <QVBoxLayout> int main(int argc, char *argv[]) { QApplication a(argc, argv); QDialog d; QVBoxLayout layout(&d); QDateEdit de(&d); layout.addWidget(&de); de.setDate(QDate(2017,3,22)); d.show(); return a.exec(); }
Attachments
Issue Links
- is duplicated by
-
QTBUG-64485 QDateEdit has a problem of display 2017-10-15
- Closed