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

[Material Style] TextArea + ScrollView produce drawing issue

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.12.5
    • 5.12.2
    • Quick: Controls 2
    • None
    • Windows 10 x64
    • Windows
    • da06da57002b64cf4bcde0ca708b3275a5f919ae

    Description

      import QtQuick 2.12
      import QtQuick.Controls 2.5
      import QtQuick.Window 2.12
      
      Window {
          visible: true
          width: 640
          height: 480
          title: qsTr("Hello World")
      
          ScrollView {
              anchors.centerIn: parent
      
              contentWidth: control.implicitWidth
              contentHeight: control.implicitHeight
      
              TextArea {
                  id: control
                  text: "Text goes here."
              }
          }
      }
      

      When I try to nest a TextArea inside a ScrollView, the TextArea draws a unexpected grey rectangle at startup.

      When the TextArea get active focus, that rectangle disappears.

      Removing the background of TextArea also remove the rectangle:

      TextArea {
          background: null
      }

      Also note that the issue does not reproduce in Qt 5.12.1

      Attachments

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

        Activity

          People

            mitch_curtis Mitch Curtis
            gpbeta Joshua GPBeta
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes