The QQuickItem::size() method was introduced in 5.10, so use direct width() and height() access instead. Fixes #908 Part-of: <!1069>