Results 1 to 3 of 3

Thread: Customize QCalendar Widget

  1. #1
    Join Date
    Apr 2008
    Posts
    196
    Thanked 8 Times in 6 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows
    Wiki edits
    1

    Default Customize QCalendar Widget

    Hey @all,

    attached is a simple example of how i want to implement. The question is only how?
    Can anybody give me hints, examples or something similar to add such text, change the background color of a cell, and add status icons on the top of each cell?

    Thanks in advance

    Best Regards
    NoRulez
    Attached Images Attached Images

  2. #2
    Join Date
    Dec 2006
    Posts
    849
    Thanks
    6
    Thanked 163 Times in 151 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Customize QCalendar Widget

    a) use a QTableView with a custom delegate to render the days; you'd have to provide the "layout" yourself
    b) use QGraphicsView; you have to do all the calender stuff yourself, but get lots of help with things like "display text", mouse events etc.
    c) maybe you can derive from QCalenderWidget and override QCalenderWidget::paintCell(); you have to enlarge the widget though...
    d) derive from QWidget (i.e. do all by yourself)

  3. #3
    Join Date
    Aug 2010
    Location
    Manaus, Brazil
    Posts
    1
    Qt products
    Qt3
    Platforms
    Unix/X11 Windows

    Default Re: Customize QCalendar Widget

    Hi NoRulez,

    Could you help me to implement a QCalendar like the picture? I work with QT but i don't know to reimplement widget.
    Thanks.

Similar Threads

  1. QCalendar Widget styling
    By succorguy in forum Qt Programming
    Replies: 5
    Last Post: 7th December 2010, 22:49
  2. QDockWidget inside another widget in the center?
    By Antebios in forum Qt Programming
    Replies: 1
    Last Post: 16th February 2010, 08:06
  3. How to Open & Close a Widget ?!!
    By Fatla in forum Qt Programming
    Replies: 6
    Last Post: 13th June 2008, 21:39
  4. Customize on focus widget
    By vql in forum Qt Programming
    Replies: 9
    Last Post: 9th April 2008, 19:58
  5. Tricky problem with ARGB widget / UpdateLayeredWindow
    By nooky59 in forum Qt Programming
    Replies: 3
    Last Post: 21st February 2008, 11:35

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.