Results 1 to 5 of 5

Thread: Is there any model for calendar?

  1. #1
    Join Date
    Oct 2008
    Location
    Beijing China
    Posts
    77
    Thanks
    21
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Is there any model for calendar?

    The QCalendarWidget does not meet most of our requirements in appearance or weeks, So i want to implement a custom calendar use QTableView and QAbstractItemModel , just like QCalendarWidget does ( QCalendarView, QCalendarModel and QCalendarDelegate area used in this calss but are not provided to users ).
    So, is there any suggestions about how to implement the model, or is there any exiting model for this purpose?

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Is there any model for calendar?

    Take the sources of QCalendarModel, copy them and modify to suit your needs.

  3. The following user says thank you to wysota for this useful post:

    nifei (9th February 2009)

  4. #3
    Join Date
    Oct 2008
    Location
    Beijing China
    Posts
    77
    Thanks
    21
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Is there any model for calendar?

    Quote Originally Posted by wysota View Post
    Take the sources of QCalendarModel, copy them and modify to suit your needs.
    I tried and find it complicated to copy. Why does not Qt provide it?

  5. #4
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Is there any model for calendar?

    Because Qt is not a software provider. Nor can it develop customize solutions for every person.

    It has given you a beautiful framework. It has given you some ready to eat snacks.
    But if you want something special, you need to cook yourself. Qt has given you the ingredients

  6. #5
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Is there any model for calendar?

    Quote Originally Posted by nifei View Post
    I tried and find it complicated to copy.
    Ctrl+C, Ctrl+V, compile, find first error, correct, compile, find first error, and so on. It probably uses P-IMPL but it should be easy to get rid of it in this particular case.

Similar Threads

  1. hierarchical model in a flat view
    By gniking in forum Qt Programming
    Replies: 4
    Last Post: 10th November 2009, 20:17
  2. Coin3d + Qt: SIGLNALs and SLOTs
    By vonCZ in forum Newbie
    Replies: 26
    Last Post: 15th May 2009, 07:34
  3. Help needed in creating Tree Model.
    By kaushal_gaurav in forum Qt Programming
    Replies: 5
    Last Post: 18th December 2008, 12:14
  4. Custom Model Advice Requested
    By mclark in forum Qt Programming
    Replies: 3
    Last Post: 18th September 2008, 16:26
  5. Model Choices review/questions
    By ucntcme in forum Qt Programming
    Replies: 1
    Last Post: 16th September 2007, 21: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.