QDateTimeEdit and CalendarPopup.
-
Hi! I have an QDateTimeEdit with calendarPopup=true. How can I open this calendar programmatically (without clicking the arrow button)?
-
Maybe emulating a keypress event manually for the will do the trick (DateTimeEdit should get the focus first). I mean Alt + ArrowDown.
-
I have not tried this, but maybe it is enough to call show() on the calendarwidget?
-
[quote author="Tobias Hunger" date="1279811974"]I have not tried this, but maybe it is enough to call show() on the calendarwidget?[/quote]
I think no. May be this can show calendar widget, but with old position. Here 3 calls:
@ d->initCalendarPopup();
d->positionCalendarPopup();
d->monthCalendar->show();@ -
bq. I have not tried this, but maybe it is enough to call show() on the calendarwidget?
I tried it, but it hasn't given any results.