diff --git a/doc/config/qt-html-online-styles.qdocconf b/doc/config/qt-html-online-styles.qdocconf
index 22c751443fc..7e394a5e7cf 100644
--- a/doc/config/qt-html-online-styles.qdocconf
+++ b/doc/config/qt-html-online-styles.qdocconf
@@ -2,7 +2,7 @@
# specified relative to the template directory and will be copied into
# subdirectories of the output directory.
-HTML.templatedir = $SRCDIR/doc/src/template
+HTML.templatedir = $SRCDIR/templates
HTML.stylesheets = style/narrow.css \
style/style.css \