PDA

View Full Version : Building my custom calender



rahulgogoi
9th May 2011, 08:31
hello friends

Actually i want to build my custom calender rather than the calender provided in qt..for that i have desined my own calender by using buttons in to represent each cell.now i found very difficult to get the logic of building calender using buttons..because in qt the logic is given but they have use table row and cols in representing each cell..and move each cell..now can anyone give me the idea of how can i start..the thing i want to know are

1.what are the things i need to calculate first.

2. how can i know the day of next month that means in which week (ie monday,tuesday...) it fall based on previous month day

with regards

Rahul

squidge
9th May 2011, 08:40
Qt is open source, so you can see how it does it.

Why exactly are you reinventing the wheel? It may be a lot easier to just modify the existing calendar (eg. subclass QCalendarWidget)

rahulgogoi
9th May 2011, 09:16
Hello squidge
thanks for ur suggestion...so if i use QCalenderWidget,is it possible for me to add buttons in place of each cell..becoz my task is to build a calende using buttons..

with regards
rahul

rahulgogoi
9th May 2011, 10:05
hey lovely
is this an answer of my question