diff --git a/SimDynamics/DynamicsEngine/BulletEngine/BulletCoinQtViewer.h b/SimDynamics/DynamicsEngine/BulletEngine/BulletCoinQtViewer.h
index c03c018dc73de60095ad05cdcd6c41d828145a97..fa965ffefc8bdd217f4b680964da181436b719f0 100644
--- a/SimDynamics/DynamicsEngine/BulletEngine/BulletCoinQtViewer.h
+++ b/SimDynamics/DynamicsEngine/BulletEngine/BulletCoinQtViewer.h
@@ -38,9 +38,7 @@
 #include <QtCore/QtGlobal>
 #include <QtGui/QtGui>
 #include <QtCore/QtCore>
-#if QT_VERSION >= 0x050000
 #include <QtWidgets/QFrame>
-#endif
 
 namespace SimDynamics
 {
diff --git a/VirtualRobot/Grasping/GraspEditor/GraspEditorWindow.h b/VirtualRobot/Grasping/GraspEditor/GraspEditorWindow.h
index f80ddb31a76e42e8d1c261003af1a2276b9909ce..5f10e7eaf697eea69f48356dbbe8d01d5d8f48b3 100644
--- a/VirtualRobot/Grasping/GraspEditor/GraspEditorWindow.h
+++ b/VirtualRobot/Grasping/GraspEditor/GraspEditorWindow.h
@@ -12,9 +12,7 @@
 #include <VirtualRobot/ManipulationObject.h>
 #include <string.h>
 #include <QtGui>
-#if QT_VERSION >= 0x050000
 #include <QtWidgets/QtWidgets>
-#endif
 #include <QtCore/QtCore>
 
 #include <Inventor/sensors/SoTimerSensor.h>