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

Text with RichText format crashes with certain markup

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P1: Critical
    • None
    • 5.12.3
    • Quick: Other
    • None
    • All

    Description

      When using certain markup combinations for a Text item with RichText format, the application crashes.

      Example:

      import QtQuick 2.9
      import QtQuick.Window 2.2
      
      Window {
        visible: true
        width: 640
        height: 480
        title: qsTr("Text Crash")
      
        // Crashes, remove some markup like valign="top", the bold text or the image and no crash happens
        Text {
          width: parent.width
          textFormat: Text.RichText
      
          text: '<b>Bold!</b><br/>
      <table>
       <tr valign="top">
          <td>
          <img src="http://ipsumimage.appspot.com/600x250?l=Ipsum%20Image&f=ffffff" />
          </td>
        </tr>
      </table>'
        }
      }
      

      A crash in such cases did not happen with Qt 5.11, which we used before.

      Attachments

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

        Activity

          People

            w00t Robin Burchell
            GTDev Günther Teufl
            Votes:
            3 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes