Added Q_INVOKABLE to pos and size methods