aboutsummaryrefslogtreecommitdiffstats
path: root/examples/declarative/painteditem/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/declarative/painteditem/main.cpp')
-rw-r--r--examples/declarative/painteditem/main.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/examples/declarative/painteditem/main.cpp b/examples/declarative/painteditem/main.cpp
index 1308325ca3..10bd4302c9 100644
--- a/examples/declarative/painteditem/main.cpp
+++ b/examples/declarative/painteditem/main.cpp
@@ -47,6 +47,11 @@ class MyPaintItem : public QSGPaintedItem
{
Q_OBJECT
public:
+ MyPaintItem() : QSGPaintedItem()
+ {
+ setAntialiasing(true);
+ }
+
virtual void paint(QPainter *p)
{
QRectF rect(0, 0, width(), height());