diff --git a/share/qtcreator/templates/wizards/qml-extension/project.pro b/share/qtcreator/templates/wizards/qml-extension/project.pro
index 94686cebcab..1e98bd7a765 100644
--- a/share/qtcreator/templates/wizards/qml-extension/project.pro
+++ b/share/qtcreator/templates/wizards/qml-extension/project.pro
@@ -4,6 +4,7 @@ QT += declarative
 CONFIG += qt plugin
 
 TARGET = $$qtLibraryTarget($$TARGET)
+uri = %Uri%
 
 # Input
 SOURCES += \
@@ -23,3 +24,13 @@ OTHER_FILES = qmldir
     QMAKE_EXTRA_TARGETS += copy_qmldir
     PRE_TARGETDEPS += $$copy_qmldir.target
 }
+
+qmldir.files = qmldir
+symbian {
+    # ...
+} else:unix {
+    installPath = /usr/lib/qt4/imports/$$replace(uri, \., /)
+    qmldir.path = $$installPath
+    target.path = $$installPath
+    INSTALLS += target qmldir
+}
diff --git a/share/qtcreator/templates/wizards/qml-extension/wizard.xml b/share/qtcreator/templates/wizards/qml-extension/wizard.xml
index d5239ec5842..307b2fdc49b 100644
--- a/share/qtcreator/templates/wizards/qml-extension/wizard.xml
+++ b/share/qtcreator/templates/wizards/qml-extension/wizard.xml
@@ -60,6 +60,10 @@ leave room for the Qt 4 target page.
             
             Object Class-name:
         
+        
+            
+            URI:
+