qt4 - [Qt]paintEvent not getting called in custom button derived from QAbstractButton -


I am trying to create custom buttons from "QAbstractbutton". I have overridden PaintEvent. However, my button is not visible in my widget. What I am seeing is that the Paint Event is not found even after showing an update / paint / show on my button

thanks

PaintAvent will not call on an object, unless the object has zero-width and height. My guess (and any example code is absent, it's a pure estimate) is that you have created one with only 0 width or height, and hope to attract it.


Comments