void QGraphicsWebViewPrivate::setInputMethodEnabled(bool enable) { #if QT_VERSION >= QT_VERSION_CHECK(4, 6, 0) q->setFlag(QGraphicsItem::ItemAcceptsInputMethod, enable); #endif }