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

Crash in QPainter::drawText on Mac

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 4.7.1
    • 4.7.0
    • None
    • None
    • Mac OS X Snow Leopard Cocoa
    • macOS

    Description

      Draw text crash on Mac for the Monaco font when called with a non printable char like this:

          wchar_t wsz[] = { 0x00000012, 0x00000000 };
          QString str(QString::fromWCharArray(wsz, 1));
          painter.drawText(QPointF(50,50), str);
      

      This used to create a square in previous versions.

      Attached example application to reproduce.

      Attachments

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

        Activity

          People

            sorvig Morten Sørvig
            xcm Martin Petersson (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