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

QML Text: height can not bind to contentHeight (when triggered by a change of its 'text' property)

    XMLWordPrintable

    Details

    • Platform/s:
      Linux/X11, macOS
    • Commits:
      63ada5fa00ba37e0fbfcd7b70dcbd99580dd7c4f (qt/qtdeclarative/5.12)

      Description

      1. Create a new project: Qt Quick Application - Empty
      2. Use default all along the way
      3. Paste the code to main.qml (see attachment)
      4. Run the app
      5. Click the button
      6. See the console, we can see the contentHeight is 16 but the height is 0, which is wrong, because in the code we bind them together

      main.qml

        Attachments

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

          Activity

            People

            • Assignee:
              ulherman Ulf Hermann
              Reporter:
              kthtes YIN YI
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes