Details
-
Bug
-
Resolution: Cannot Reproduce
-
P3: Somewhat important
-
4.4.2
-
None
Description
Setting clipping to false does not seem to have an effect on Mac OS X when using a gradient brush.
Can be reproduced with the following example:
#include <QApplication>
#include <QWidget>
#include <QPainter>
inline QColor qt_mix_colors(QColor a, QColor b)
{
return QColor((a.red() + b.red()) / 2, (a.green() + b.green()) / 2,
(a.blue() + b.blue()) / 2, (a.alpha() + b.alpha()) / 2);
}
class RenderBug : public QWidget
{
public:
RenderBug(QWidget *parent = 0) : QWidget( parent ) {}
protected:
void paintEvent(QPaintEvent *event)
};
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
RenderBug widget;
widget.setGeometry(100, 100, 500, 355);
widget.show();
return app.exec();
}