diff --git a/common/vsprops/QtCompile.props b/common/vsprops/QtCompile.props
index 68ce622232..1eb8c53295 100644
--- a/common/vsprops/QtCompile.props
+++ b/common/vsprops/QtCompile.props
@@ -59,23 +59,37 @@
-
-
-
-
+
+
+
-
+ Condition="'@(QtUi)'!=''">
-
-
+
+
+
+ uic %(Filename)
+
+ "$(QtHostBinDir)uic.exe" "%(FullPath)" -o "$(QtToolOutDir)ui_%(Filename).h"
+
+ $(QtToolOutDir)ui_%(Filename).h
+
+
-
-
+
+
+
+
+
+
+
diff --git a/common/vsprops/QtCompile.targets b/common/vsprops/QtCompile.targets
index 75ac29f304..ec70459f96 100644
--- a/common/vsprops/QtCompile.targets
+++ b/common/vsprops/QtCompile.targets
@@ -1,7 +1,7 @@
- QtResourceClean;QtUiClean;QtMocClean;QtTsClean;$(CleanDependsOn)
+ QtResourceClean;QtMocClean;QtTsClean;$(CleanDependsOn)