bool QGraphicsWebViewPrivate::inputMethodEnabled() const { #if QT_VERSION >= QT_VERSION_CHECK(4, 6, 0) return q->flags() & QGraphicsItem::ItemAcceptsInputMethod; #else return false; #endif }