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

Scaled QGraphicsTextItem rendered in low quality on Mac

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: 5.0.0 Beta 1, 5.0.0 Beta 2, 5.0.0 RC 1, 5.0.0
    • Fix Version/s: 5.0.0 Beta 2
    • Component/s: Widgets: GraphicsView
    • Labels:
      None
    • Environment:
      OS X 10.7.5, Qt 5 built from git.
    • Platform/s:
      macOS
    • Commits:
      efc9b77a6e9a0efe0c260a4a7fe18bf3f87a8f13

      Description

      Text items in QGraphicsView are rendered in really low, pixelated quality when scaled/zoomed.

      Run the simpel example below and compare the text rendered in 4.8 and 5.0. The one in 5.0 is extremely pixelated. See the attached screenshot.

      #include <QApplication>
      #include <QGraphicsView>
      #include <QGraphicsTextItem>
      
      int main(int argc, char *argv[])
      {
      	QApplication a(argc, argv);
      
      	QGraphicsScene scene;
      	QGraphicsView view;
      	view.setScene(&scene);
      	QGraphicsTextItem * text = scene.addText("Some Text");
      	view.show();
      	view.fitInView(text);
      	
      	return a.exec();
      }
      

        Attachments

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

          Activity

            People

            Assignee:
            teemukat Teemu Katajisto (Inactive)
            Reporter:
            stephenju Stephen Chu
            Votes:
            1 Vote for this issue
            Watchers:
            8 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes