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

    • Linux/X11, macOS
    • 63ada5fa00ba37e0fbfcd7b70dcbd99580dd7c4f (qt/qtdeclarative/5.12)

      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

        1. main.qml
          0.6 kB
          YIN YI
        For Gerrit Dashboard: QTBUG-71684
        # Subject Branch Project Status CR V

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes