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

Update QML connection example snippet

    XMLWordPrintable

Details

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

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes