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

TextArea anchor loop with TextEdit.NoWrap

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.5.0
    • Quick: Controls 1
    • None
    • Qt 5.5.0 - MinGW

    Description

      An example as simple as the following generates a warning for a binding loop on fill:

      import QtQuick 2.4
      import QtQuick.Controls 1.3
      
      ApplicationWindow {
          title: "test window"
          width: 500
          height: 500
          visible: true
      
          TextArea {
              wrapMode: TextEdit.NoWrap
          }
      }
      

      The exact warning is:

      [..]/mingw492_32/qml/QtQuick/Controls/ScrollView.qml:340:13: QML Item: Possible anchor loop detected on fill.
      

      Setting width/height does not improve the result (as well as setting anchors). It seems that everything is related to the value "TextEdit.NoWrap" since by removing it the warning simply disappears.

      A possible workaround is to set the "wrapMode" property in the "Component.onCompleted" handler.

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            jirauser12060 user-e2f6b (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes