Details
-
Bug
-
Resolution: Done
-
P4: Low
-
5.15.0
-
-
44af3bd0f7b5a087f878ae626bc36250586c6e49 (qt/qtdeclarative/dev) ad47d70e2289d59625cd405fa54c5de2db68ad82 (qt/qtdeclarative/5.15)
-
Da Vinci sprint 11
Description
Please update the documentation code snippets using the latest syntax, here https://doc.qt.io/qt-5/qtqml-syntax-signals.html :
Connections { target: button onClicked: { rect.color = Qt.rgba(Math.random(), Math.random(), Math.random(), 1); } }
Should be:
Connections { target: button function onClicked() { rect.color = Qt.rgba(Math.random(), Math.random(), Math.random(), 1); } }