Skip to content

Commit 4a0f9d1

Browse files
authored
Fix Qt6 migration tutorial QML syntax (#693)
Signed-off-by: Ian Chen <ichen@openrobotics.org>
1 parent d506ec9 commit 4a0f9d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tutorials/09_migration_qt6.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ this should be done from `gz-gui10` onwards. Prior to `gz-gui10`, access to
2424
C++ functions or properties was done with the following syntax in QML:
2525

2626
```qml
27-
MyClass::FunctionFoo()
27+
MyClass.FunctionFoo()
2828
```
2929

3030
The new syntax for doing this in Qt6 based Gazebo GUI plugin is:
3131

3232
```qml
33-
_MyClass::FunctionFoo()
33+
_MyClass.FunctionFoo()
3434
```
3535

3636
As an example, in the Qt5 based `Screenshot` GUI plugin's QML code, we call

0 commit comments

Comments
 (0)