bunjee
23rd November 2009, 17:50
Hey guys,
I want to achieve the following.
- Create a QWidget, say a QPushButton.
- Create another QWidget.
- Subclass its paintEvent method and paint a gradient.
- Overlap my QPushButton with the QWidget gradient.
- Still get mouse events on my QPushButton.
What's the best way for doing that ?
Thanks.
I want to achieve the following.
- Create a QWidget, say a QPushButton.
- Create another QWidget.
- Subclass its paintEvent method and paint a gradient.
- Overlap my QPushButton with the QWidget gradient.
- Still get mouse events on my QPushButton.
What's the best way for doing that ?
Thanks.