Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-85177

Update QML connection example snippet

XMLWordPrintable

    • All
    • 44af3bd0f7b5a087f878ae626bc36250586c6e49 (qt/qtdeclarative/dev) ad47d70e2289d59625cd405fa54c5de2db68ad82 (qt/qtdeclarative/5.15)
    • Da Vinci sprint 11

      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); 
      } 
      } 
      

        For Gerrit Dashboard: QTBUG-85177
        # Subject Branch Project Status CR V

            paulwicking Paul Wicking
            karimpinter Karim Pinter
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes