diff --git a/share/qtcreator/qml/qmlpuppet/container/informationcontainer.cpp b/share/qtcreator/qml/qmlpuppet/container/informationcontainer.cpp
index c0b8be04c66319e94530cba9df3b6cd9cc6fab90..020beed68d5054cb9c7824ab0ccf1abf3280ed85 100644
--- a/share/qtcreator/qml/qmlpuppet/container/informationcontainer.cpp
+++ b/share/qtcreator/qml/qmlpuppet/container/informationcontainer.cpp
@@ -109,6 +109,7 @@ bool operator ==(const InformationContainer &first, const InformationContainer &
             && first.m_thirdInformation == second.m_thirdInformation;
 }
 
+#if QT_VERSION < QT_VERSION_CHECK(5, 2, 0)
 static bool operator <(const QVariant &first, const QVariant &second)
 {
     if (first.userType() == second.userType()) {
@@ -118,6 +119,7 @@ static bool operator <(const QVariant &first, const QVariant &second)
 
     return true;
 }
+#endif
 
 bool operator <(const InformationContainer &first, const InformationContainer &second)
 {