PDA

View Full Version : 2 QDateEdit with 1 QCalendarWidget ?



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 ?

Lykurg
24th April 2010, 17:07
and is it working like I expect ?Did you try it?

ouekah
25th April 2010, 08:57
Well I wish I could but I'm still stuck with a previous issue:

http://www.qtcentre.org/threads/30146-QCalendarWidget-clicked

Lykurg
25th April 2010, 10:10
Well I wish I could but I'm still stuck with a previous issue:

http://www.qtcentre.org/threads/30146-QCalendarWidget-clicked

Come on, it is not fair to ask questions about things you havent tried. Also you should first solve you current problems befor moving on.

ouekah
26th April 2010, 09:24
is it possible for two QDateEdit to share the same QCalendarWidget ?

The answer is: no.