ouekah
24th April 2010, 15:51
Hi,
is it possible for two QDateEdit to share the same QCalendarWidget ? For example is it possible to do the following:
QDateEdit *dateEdit1 = new QDateEdit;
QDateEdit *dateEdit2 = new QDateEdit;
CalendarWidget *calendarWidget = new CalendarWidget;
dateEdit1->setCalendarWidget(calendarWidget);
dateEdit2->setCalendarWidget(calendarWidget);
and is it working like I expect ?
is it possible for two QDateEdit to share the same QCalendarWidget ? For example is it possible to do the following:
QDateEdit *dateEdit1 = new QDateEdit;
QDateEdit *dateEdit2 = new QDateEdit;
CalendarWidget *calendarWidget = new CalendarWidget;
dateEdit1->setCalendarWidget(calendarWidget);
dateEdit2->setCalendarWidget(calendarWidget);
and is it working like I expect ?