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

TextArea decorator not working as intended

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P1: Critical
    • None
    • 6.5.0
    • Quick: Controls 2
    • None
    • All

    Description

      The following GIF shows multiple bugs:
      1. The TextArea's Material.accent property is not respected inside the Flickable.
      2. The placeholderText is not part of the decorator, so it scrolls along the content.
      3. The CursorDelegate is shown beyond the TextArea's limits even when clipped.

      EDIT: There's is actually a fourth bug that I explain more carefully in the second comment:
      4. The placeholderText is cropped at half when the TextArea is clipped. This also applies to TextField.

      Source code (run with qml tool):

      import QtQuick
      import QtQuick.Controls.Material
      
      ApplicationWindow {
          width: 400
          height: 400
          visible: true
      
          Flickable {
              anchors.fill: parent
              anchors.margins: 100
      
              TextArea.flickable: TextArea {
                  placeholderText: "Type something..."
                  text: "a\nb\nc\nd\ne\nf\ng\nh\ni\nj\nk\nl\nm\nn"
              }
          }
      }
      

      Attachments

        1. TextArea-bugs2.gif
          TextArea-bugs2.gif
          311 kB
        2. TextArea-bugs.gif
          TextArea-bugs.gif
          232 kB
        3. Slow_animation.gif
          Slow_animation.gif
          333 kB

        Issue Links

          Activity

            People

              mitch_curtis Mitch Curtis
              ceperez1996 Carlos Pérez
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: