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

TextEdit text handling properties shows in a bound Text element

    XMLWordPrintable

Details

    Description

      1. Run the attached .qml
      2. p, li { white-space: pre-wrap; }

        is displayed in the Text box


      Should be just showing the text formatted in bold. The TextEdit converts the <b>Oops</b> to the following, even if textFormat: TextEdit.PlainText is set.

      <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
      <html><head><meta name="qrichtext" content="1" /><style type="text/css">
      p, li { white-space: pre-wrap; }
      </style></head><body style=" font-family:'Helvetica'; font-size:12pt; font-weight:400; font-style:normal;">
      <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Oops</span></p></body></html>
      

      Setting text: "" and entering <b>Oops</b> into the TextEdit afterwards works as expected.

      Attachments

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

        Activity

          People

            denexter Andrew den Exter (closed Nokia identity) (Inactive)
            dajansen Damian Jansen (closed Nokia identity) (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes