PDA

View Full Version : How can I add a QCalendarWidget to a QToolBar?



cydside
10th April 2009, 19:41
Hi to All,
I'm trying to add a QCalendarWidget to a QToolBar via Qt Designer, I drag and drop the widget but nothing happens. Is there a procedure?:confused:
Thanks!

wysota
11th April 2009, 00:06
You can't do that via Designer. You have to use QToolBar::addAction() with QWidgetAction pointing to the calendar. This probably won't look good though. Try QDateEdit with calendarPopup property enabled.