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

Text improperly scaled in QLineEdit wrapped in a QGraphicsProxyWidget when QGraphicsView is scaled

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • 4.7.4
    • None
    • Windows 7 Ultimate x64
      Mac OS X Lion 10.7.1
      Ubuntu 11.04 64-bit

      Qt SDK 1.1.3 (excluding Qt 4.8 beta)
      Qt 4.7.4

    Description

      1) Create a QLineEdit.
      2) Put it in a QGraphicsProxyWidget and include the proxy in a QGraphicsScene, or just call addWidget from the QGraphicsScene instance.
      3) Create a QGraphicsView and set its scene to be the scene you have just created.
      4) Now scale the view using: QGraphicsView::setScale(qreal sx, qreal sy).
      5) Notice that on Windows and Linux the text looks good, but on Mac OS X it is displayed pixelated.

      Windows and Linux:
      ===========
      text: scaled (rasterized at actual resolution)
      QLineEdit's border: magnified (pixelated)
      —————————-

      Mac OS X:
      ===========
      text: magnified (pixelated)
      QLineEdit's border: magnified (pixelated)
      —————————-

      A sample project is provided.

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            caravanio Caravanio Napajejenunedkov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes