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

QGraphicsProxyWidget: Scaling of text does not work well on Mac

    XMLWordPrintable

Details

    • macOS

    Description

      When scaling a QGraphicsProxyWidget containing widgets with text, then the text does not look crisp on Mac.

      Test case main.cpp to reproduce issue
      ====================================
      #include <QtGui>

      int main(int argc, char **argv)
      {
      QApplication app(argc, argv);

      QGroupBox *groupBox = new QGroupBox("Contact Details");
      QLabel *numberLabel = new QLabel("Telephone number");
      QLineEdit *numberEdit = new QLineEdit;

      QFormLayout *layout = new QFormLayout;
      layout->addRow(numberLabel, numberEdit);
      groupBox->setLayout(layout);

      QGraphicsScene scene;
      QGraphicsProxyWidget *proxy = scene.addWidget(groupBox);
      proxy->scale(2, 2);

      QGraphicsView view(&scene);
      view.show();

      return app.exec();
      }

      Attachments

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

        Activity

          People

            bjnilsen Bjørn Erik Nilsen
            sanonymous Nokia Qt Support (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