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.