Results 1 to 4 of 4

Thread: Building my custom calender

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2011
    Posts
    21
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Symbian S60

    Default Building my custom calender

    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

  2. #2
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Building my custom calender

    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)

  3. #3
    Join Date
    May 2011
    Posts
    21
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Symbian S60

    Default Re: Building my custom calender

    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

  4. #4
    Join Date
    May 2011
    Posts
    21
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Symbian S60

    Default Re: Building my custom calender

    hey lovely
    is this an answer of my question

Similar Threads

  1. Calender
    By anshumanBorah in forum General Programming
    Replies: 18
    Last Post: 14th April 2011, 10:08
  2. Array of button for creating custom calender
    By anshumanBorah in forum Qt Programming
    Replies: 1
    Last Post: 12th April 2011, 13:21
  3. Custom Model? Custom View? Custom Delegate?
    By Doug Broadwell in forum Newbie
    Replies: 4
    Last Post: 11th February 2010, 20:23
  4. Replies: 0
    Last Post: 1st February 2010, 11:00
  5. Problem building application with custom widget
    By Uthar in forum Installation and Deployment
    Replies: 6
    Last Post: 19th January 2009, 17:57

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.