View Full Version : (PyQt5) QDateEdit write date from the keyboard
Odium
26th January 2021, 10:48
Is there any way to write the date to the widget without double clicking on it? I tried to clear the widget when clicked, but QDateEdit has no such slot.
Thanks in advance for your attention
d_stranz
27th January 2021, 00:21
Is there any way to write the date to the widget without double clicking on it? I tried to clear the widget when clicked, but QDateEdit has no such slot.
I have no idea what you mean by this. The base class for QDateEdit, QDateTimeEdit has a clear() method, as well as setDate(), setTime() and setDateTime() methods (slots). QDate has a static currentDate() method to retrieve today's date.
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.