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

TextArea: Wrong behaviour when no wrapMode specified

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P2: Important
    • Some future release
    • 5.2.1
    • Quick: Controls 1
    • None
    • Qt 5.2.1
      QtCreator 3.0.1
      OS: Windows 8 Pro 64bits

    Description

      Conditions to reproduce:

      • no wrapMode specified on the TextArea
      • the text doesn't have any spaces or newlines in it
      • the text exceeds the width of the textarea

      What's wrong :
      -> no horizontal scrollbar shows up
      -> mouse selection doesn't work on the right part of the text (the part that exceeds the width of the textarea).

      If you specify "wrapMode: Text.NoWrap", it works well although the documentation says it's the default value.

      Code snippet:

      TextAreaWrapBug.qml
      Rectangle {
          id: root
          width: 400
          height: 400
      
         TextArea {
                  x:50
                  y:50
                  height: 100
                  width: 300
                  text: "TextWithoutSpacesTextWithoutSpacesTextWithoutSpacesTextWithoutSpacesTextWithoutSpacesTextWithoutSpacesTextWithoutSpacesTextWithoutSpaces"
              }
      }
      

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-38022
          # Subject Branch Project Status CR V

          Activity

            People

              qt.team.quick.subscriptions Qt Quick and Widgets Team
              daveloper David Joassard
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes