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 hovering a Day

QCalendarWidget hovering a Day

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 878 Views
  • 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.
  • Fuel 0F Offline
    Fuel 0F Offline
    Fuel 0
    wrote on last edited by
    #1

    At the Moment im searching for something to easily make a Hovereffect when i hover over a Day in QCalendarWidget, without making a Delegate or change something in the Class. I tried it with QSS, but i found no Solution. I read that its not possible what i want to do. Is there another easy Possibility?

    1 Reply Last reply
    0
    • A Offline
      A Offline
      ambershark
      wrote on last edited by
      #2

      You're going to have to subclass the widget if you want to do this. You can't use a delegate because it's not a view, and there is no other way to do it.

      Good news is subclassing the QCalendarWidget and adding in code to deal with hovering over the current day should be fairly easy.

      My L-GPL'd C++ Logger github.com/ambershark-mike/sharklog

      1 Reply Last reply
      1
      • Fuel 0F Offline
        Fuel 0F Offline
        Fuel 0
        wrote on last edited by
        #3

        Ok im going to try that later. So its not possible with Stylesheets?

        A 1 Reply Last reply
        0
        • Fuel 0F Fuel 0

          Ok im going to try that later. So its not possible with Stylesheets?

          A Offline
          A Offline
          ambershark
          wrote on last edited by
          #4

          @Fuel-0 You could get hover via a stylesheet, but AFAIK there is no way to determine if you are hovering over the current day.

          I'm going to guess that it wouldn't be possible via stylesheets, but I haven't tried or looked at css in Qt in a while so it could have been added and I don't know about it. :)

          My L-GPL'd C++ Logger github.com/ambershark-mike/sharklog

          1 Reply Last reply
          0

          • Login

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