diff --git a/src/imageformats/doc/qtimageformats.qdocconf b/src/imageformats/doc/qtimageformats.qdocconf
index c522d3248c8068e09a54291f4328114818118a47..17413bb6185d9bf99440cbea5ce2503be1380229 100644
--- a/src/imageformats/doc/qtimageformats.qdocconf
+++ b/src/imageformats/doc/qtimageformats.qdocconf
@@ -4,7 +4,7 @@ include($QT_INSTALL_DOCS/global/qt-module-defaults.qdocconf)
 project     = qtimageformats
 description = Qt Image Formats Documentation
 url         = http://qt-project.org/doc/qtimageformats
-version     = 5.0.1
+version     = $QT_VERSION
 
 # Directories in which to search for files to document.
 # Paths are relative to the location of this file.
@@ -31,7 +31,7 @@ qhp.qtimageformats.file = qtimageformats.qhp
 # different documentation files in Creator/Assistant. The namespace ends with
 # a version being a number containing a major, minor and revision element.
 # E.g. version 1.0 becomes 100.
-qhp.qtimageformats.namespace = org.qt-project.qtimageformats.501
+qhp.qtimageformats.namespace = org.qt-project.qtimageformats.$QT_VERSION_TAG
 
 # Title for the package, will be the main title for the package in
 # Assistant/Creator.