Results 1 to 1 of 1

Thread: [Solved] QCalendarWidget selection color

  1. #1
    Join Date
    Apr 2015
    Posts
    1
    Thanks
    1

    Default [Solved] QCalendarWidget selection color

    I have a QCalendarWidget and some days of month are colored (for example holidays are red). When I select a day which is colored, selection clears the color and I can't see it's original color. But when I deselect that day - color is back. Please see in pictures.

    Capture.PNG Capture2.PNG

    Is there a way to keep color even if a day is selected? I know that there is a way to do this for QTableView with delegates, but I can't find anything like this for QCalendarWidget. Any Ideas? Thank you for your time.


    Added after 28 minutes:


    Answer can be found at http://stackoverflow.com/questions/2...election-color
    Last edited by nabroyan; 15th April 2015 at 09:41.

Similar Threads

  1. Qtablewidget and selection color
    By gab74 in forum Qt Programming
    Replies: 2
    Last Post: 18th January 2013, 09:38
  2. QCalendarWidget month-year selection
    By alitoh in forum Qt Programming
    Replies: 0
    Last Post: 13th January 2012, 13:47
  3. How to change weekends red color in QCalendarWidget?
    By Dimon in forum Qt Programming
    Replies: 2
    Last Post: 15th March 2011, 10:50
  4. QPlainTextEdit selection color?
    By jajdoo in forum Newbie
    Replies: 3
    Last Post: 18th July 2010, 09:39
  5. Selection color
    By jnana in forum Qt Programming
    Replies: 1
    Last Post: 10th November 2006, 13:28

Tags for this Thread

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.