Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QCalendarWidget coloring out of range dates
Qt 6.11 is out! See what's new in the release blog

QCalendarWidget coloring out of range dates

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 514 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    basimchowdhury
    wrote on last edited by
    #1

    When setting the minimum and maximum dates on the QCalendarWidget, how can I color those out of range dates that are now unclickable so that they are indicated as out of range?

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi
      Maybe you can use
      https://doc.qt.io/qt-5/qcalendarwidget.html#paintCell
      to paint them differntly ?

      1 Reply Last reply
      4

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved