--- a/qt/ScintillaEditBase/ScintillaQt.cpp
+++ b/qt/ScintillaEditBase/ScintillaQt.cpp
@@ -17,7 +17,9 @@
 
 #include <QApplication>
 #include <QDrag>
+#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
 #include <QInputContext>
+#endif
 #include <QMimeData>
 #include <QMenu>
 #include <QScrollBar>