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

Scaled QGraphicsTextItem rendered in low quality on Mac

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.0.0 Beta 2
    • 5.0.0 Beta 1, 5.0.0 Beta 2, 5.0.0 RC 1, 5.0.0
    • Widgets: GraphicsView
    • None
    • OS X 10.7.5, Qt 5 built from git.
    • macOS
    • 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

            teemukat Teemu Katajisto (Inactive)
            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