I have same code which works fine on Windows and Linux but on Mac OS, the pop-up menu has a grey background and is not clipped properly:

For implementing this, i am subclassing QMenu, creating a custom QPainterPath, drawing it inside paintEvent using painter.drawPath and also using setMask().

Is this an issue with Qt? Any solution to this?

Note: In this link, please refer QGroupBox and QTabWidget screen shots, i can see the grey background as part of the widget.