diff --git a/examples/gallery/content/Controls.qml b/examples/gallery/content/Controls.qml
index 9a2b8a7446047509a95d42e2ceec33422eb4cfef..10a916c6c5b11ced96d5a9fb2746cc4504b3b30a 100644
--- a/examples/gallery/content/Controls.qml
+++ b/examples/gallery/content/Controls.qml
@@ -47,7 +47,7 @@ Item {
     anchors.fill: parent
     enabled: enabledCheck.checked
 
-    property string tabPosition: tabPositionGroup.checkedButton == r2 ? "South" : "North"
+    property string tabPosition: tabPositionGroup.current === r2 ? "South" : "North"
 
     Row {
         id: contentRow