Hello,

I am trying to use a style sheet on a QDateEdit widget, with the calendar popup flag turned on. I am trying to set a color for a hover event over the drop-down arrow.

Here is the style sheet I am using:
Qt Code:
  1. border: 2px solid lightgray;
  2. border-radius: 5px;
  3. }
  4.  
  5. QDateEdit::drop-down {
  6. subcontrol-origin: padding;
  7. subcontrol-position: top right;
  8. width: 15px;
  9.  
  10. border-left-width: 1px;
  11. border-left-color: darkgray;
  12. border-left-style: solid;
  13. border-top-right-radius: 3px;
  14. border-bottom-right-radius: 3px;
  15. }
  16.  
  17. QDateEdit::down-arrow {
  18. image: url(:/DateEditTest/Resources/Combobox Arrow.png);
  19. }
  20.  
  21. QDateEdit::drop-down:hover {
  22. /* Does this work with QDateEdit??? */
  23. background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #d8d7d7, stop: 1 #e9e9e9);
  24. }
To copy to clipboard, switch view to plain text mode 

What I'm seeing is that the drop-down part doesn't change color when the mouse is hovered over it. If you take the same style sheet and use it on a QComboBox (ie, use the same style sheet code but change all QDateEdit strings to QComboBox), it works perfectly. (I noticed that if you move the mouse over the QDateEdit's drop-down part quickly, it does actually change color sometimes, though not too often.)

So, my question is: is there additional styling that needs to be done for QDateEdit widgets?

Thanks!