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

CLONE - QQuickPaintedItem does not respect contentSize()/setContentsSize() correctly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Not Evaluated Not Evaluated
    • None
    • 5.1.0
    • Quick: SceneGraph
    • None
    • win 7 64bit, Nvidia Quadro 600

      For a QQuickPaintedItem if setContentsScale( 2.0 ) ( or setContentsSize() ) is set then the contents rendered in paint appears scaled in a transformed location. According to the documentation I would expect the render texture to be twice the size and painted at half the scale.

      e.g.
      setContentsScale( 2 )

      void QQuickGraphicsView::paint( QPainter * painter )
      {
      painter->drawRect( 10, 10, 100, 200 );
      }

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

            sletta Gunnar Sletta
            emmet Emmet Spier
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes