I refined it and lodged a bug
https://bugreports.qt-project.org/browse/QTBUG-34759
It appears that the focusInEvent() is resetting the currentSection() so I am working around this by subclassing QDateTimeEdit, which is OK for my purposes:
Qt Code:
public: protected: Section section = currentSection(); setSelectedSection(section); } };To copy to clipboard, switch view to plain text mode
Bookmarks