I have my custom widget where I defined my stylesheet like this:
QWidget#this { background-color: red; }
QWidget#this:hover { background-color: yellow; }
This works when I move the mouse over the widget but I don't have this behaviour when I'm dragging another widget over the first one.
I have captured the DragMove
event but can't figure out to send something like mouseHover
event (MouseMove
events doesn't seem to work).
Is this possible? Is there another way to use the stylesheet when I'm dragging another widget?
QWidget::dragEnterEvent()
? – vahancho