diff --git a/src/qml/types/qqmlbind.cpp b/src/qml/types/qqmlbind.cpp
index f6da64f913ec8052966a1bbc77362aae2c65b1ff..88080b1895acaff25e21e8c459fe0d347cfa20c6 100644
--- a/src/qml/types/qqmlbind.cpp
+++ b/src/qml/types/qqmlbind.cpp
@@ -113,12 +113,12 @@ public:
     of the binding is undefined when the mouse isn't pressed. We can use the Binding
     type to rewrite the above code and avoid the warning.
 
-    \qml
+    \code
     Binding on value {
         when: mouse.pressed
         value: mouse.mouseX
     }
-    \endqml
+    \endcode
 
     The Binding type will also restore any previously set direct bindings on
     the property. In that sense, it functions much like a simplified State.
diff --git a/src/quick/items/qquickflickable.cpp b/src/quick/items/qquickflickable.cpp
index 7ac37c2853089f12664f5a0cde960383e3b98776..d1bad78d413bf19fba9910de8f2d86e0b62a32af 100644
--- a/src/quick/items/qquickflickable.cpp
+++ b/src/quick/items/qquickflickable.cpp
@@ -1737,9 +1737,9 @@ void QQuickFlickable::setRebound(QQuickTransition *transition)
     and \l {Item::childrenRect.height}{childrenRect.height} properties
     of the \l contentItem. For example, the previous snippet could be rewritten with:
 
-    \qml
+    \code
     contentWidth: contentItem.childrenRect.width; contentHeight: contentItem.childrenRect.height
-    \endqml
+    \endcode
 
     Though this assumes that the origin of the childrenRect is 0,0.
 */
diff --git a/src/quick/items/qquickscreen.cpp b/src/quick/items/qquickscreen.cpp
index 54c7527eec611a6a37c6dd671cda3cbbebfc3c65..82f4f0af3e2bdaed90478648b5629c5944db890c 100644
--- a/src/quick/items/qquickscreen.cpp
+++ b/src/quick/items/qquickscreen.cpp
@@ -108,9 +108,9 @@ QT_BEGIN_NAMESPACE
     such as task bars and system menus. If you want to position a Window at
     the right of the desktop, you can bind to it like this:
 
-    \qml
+    \code
     x: Screen.desktopAvailableWidth - width
-    \endqml
+    \endcode
 */
 /*!
     \qmlattachedproperty int Screen::desktopAvailableHeight
@@ -122,9 +122,9 @@ QT_BEGIN_NAMESPACE
     such as task bars and system menus. If you want to position a Window at
     the bottom of the desktop, you can bind to it like this:
 
-    \qml
+    \code
     y: Screen.desktopAvailableHeight - height
-    \endqml
+    \endcode
 */
 /*!
     \qmlattachedproperty real Screen::logicalPixelDensity