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

Table in TextArea, when selecting text, the text before selection become bold

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.8.1
    • Quick: Controls 1
    • None
    • Windows

    Description

      I am using a TextArea to present a table in the UI, where I can use mouse to select some text in the table and copy them.

      While selecting text, the row above and the column before the selection become bold.

      This is very annoy, I try different property of TextArea, nothing changed.

       

      import QtQuick
      import QtQuick.Controls
      
      Window {
          width: 960
          height: 640
          visible: true
          title: qsTr("Hello World")   
      
          TextArea {
              anchors.fill: parent
              textFormat: Text.RichText
              font.family: "Open Sans"
              font.pixelSize: 14
              color: "#3A3A3A"
              readOnly: true
              focus: false
              activeFocusOnPress: true
              selectByMouse: true
              selectedTextColor: "#FFFFFF"
              selectionColor:  "#66C800"       
              text:"<table>" +
                  "<thead><tr><th>header1</th><th>header2</th><th>header3</th></tr></thead>" +
                  "<tbody><tr><td>Text 1 1</td><td>Text 1 2</td><td>Text 1 3</td></tr>" +
                  "<tr><td>Text 2 1</td><td>Text 2 2</td><td>Text 2 3</td></tr>" +
                  "<tr><td>Text 3 1</td><td>Text 3 2</td><td>Text 3 3</td></tr>" +
                  "<tr><td>Text 4 1</td><td>Text 4 2</td><td>Text 4 3</td></tr>" +
                  "<tr><td>Text 5 1</td><td>Text 5 2</td><td>Text 5 3</td></tr>" +
                  "<tr><td>Text 6 1</td><td>Text 6 2</td><td>Text 6 3</td></tr></tbody>" +
                  "</table>"
          }
      }
       

      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
            jinghuang Jing Huang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes