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

Material TextArea and TextField placeholder text incorrectly clipped

    XMLWordPrintable

Details

    • 5da4d5e80 (dev), 8b1ad3c03 (6.5)

    Description

      See the GIF in https://bugreports.qt.io/browse/QTBUG-112650?focusedCommentId=717021&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-717021.

      import QtQuick
      import QtQuick.Controls
      import QtQuick.Layouts
      
      ApplicationWindow {
          width: 640
          height: 480
          visible: true
      
          RowLayout {
              anchors.fill: parent
      
              TextArea {
                  placeholderText: "Type something..."
                  text: "a\nb\nc\nd\ne\nf\ng\nh\ni\nj\nk\nl\nm\nn"
                  clip: true
      
                  Layout.preferredWidth: 200
                  Layout.preferredHeight: 200
              }
      
              ScrollView {
                  Layout.preferredWidth: 200
                  Layout.preferredHeight: 200
      
                  TextArea {
                     placeholderText: "Type something..."
                     text: "a\nb\nc\nd\ne\nf\ng\nh\ni\nj\nk\nl\nm\nn"
                  }
              }
      
              TextField {
                  placeholderText: "Type something..."
                  text: "abc"
                  clip: true
              }
          }
      }
      

      Attachments

        1. after-473347.png
          after-473347.png
          35 kB
        2. before-473347.png
          before-473347.png
          31 kB

        Issue Links

          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
              mitch_curtis Mitch Curtis
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes