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

A QTextEdit embedded in a QGraphicsScene doesn't scale correctly when the graphics view is scaled on Mac OS X

    XMLWordPrintable

Details

    • macOS

    Description

      The attached test application shows three pieces of text in 12pt Times New Roman. Each of these is scaled by x4.25 in three ways:

      1. By scaling the QPainter used to draw the text
      2. By putting the text in a QTextEdit widget that is embedded in a QGraphicsScene and scaling the QGraphicsView
      3. By putting the text in a QGraphicsTextItem in a QGraphicsScene and scaling the QGraphicsView

      Build this application and run it on Windows and Mac to compare the results.

      On Windows, each of these renders correctly, drawing the text at the scaled size crisply.

      On Mac OS X (Cocoa), the text in the QTextEdit isn't scaled properly. Instead it's rendered at 100% and then scaled up as a bitmap, giving very poor visual results.

      This is very important for our application, because the user needs to be able to edit scaled text in place in our scalable document. The only way of scaling a QTextEdit is by using the QGraphicsView subsystem, but due to this bug it looks fairly awful on the Mac.

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            jlarcombe James Larcombe
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes