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

Add color attribute to Property Binding example

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Done
    • P3: Somewhat important
    • 5.15.9, 6.2.7, 6.3.1, 6.4.0 Beta1
    • None
    • Documentation
    • None
    • macOS 

      Safari: Version 14.0.3 (16610.4.3.1.4)

      Chrome: Version 88.0.4324.192 (Official Build) (x86_64)

    • macOS, Windows
    • d4999d2dba (qt/qtdoc/dev) b0aa0860f3 (qt/tqtc-qtdoc/5.15) 8e97e5a485 (qt/qtdoc/6.3) 8e97e5a485 (qt/qtdoc/6.3.1) 8e97e5a485 (qt/tqtc-qtdoc/6.3.1) 6c77725454 (qt/tqtc-qtdoc/6.2) 6c77725454 (qt/tqtc-qtdoc/6.2.7)

    Description

      Unable to see the two children rectangles within the property binding example without color 

      Suggestion: 
      On https://doc.qt.io/qt-5/qmlfirststeps.html under Property Bindings should include colors for the child rectangles for easier readability: 
      Current:

      Rectangle { 
        width: 400 
        height: 200 
        Rectangle { 
          width: parent.width / 2 
          height: parent.height
        } 
        Rectangle { 
          width: parent.width / 2 
          height: parent.height 
          x: parent.width / 2 
       } 
      }

      Proposed:

      Rectangle { 
       width: 400 
       height: 200 
       Rectangle { 
         width: parent.width / 2 
         height: parent.height
         color: "blue"
       
       } 
       Rectangle { 
         width: parent.width / 2 
         height: parent.height 
         x: parent.width / 2 
         color: "green"
       } 
      }
      

       

      Attachments

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

        Activity

          People

            docinfrastructure Documentation Infrastructure Team
            mukhalid Muhammed Khalid
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes