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

REGRESSION: Crash when using length variants in drawText()

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P1: Critical
    • 4.7.0
    • 4.7.0
    • GUI: Text handling
    • None

    Description

      The following code will hit an assert in Qt 4.7:

              QPainter p(this);
              QString str = QString("Loooooooooooooooooooong string%1Short alt.").arg(QChar(ushort(0x9c)));
              p.drawText(QRect(20, 20, 100, 100), 0, str);
              p.drawText(QRect(20, 40, 200, 100), 0, str);
      

      Attachments

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

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            esabraha Eskil Abrahamsen Blomfeldt
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes