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

Document that QGraphicsRectItem::setRect() doesn't change the position of an item within the scene

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.5.0
    • Documentation
    • None

    Description

      All this function does is change where the rectangle is rendered, not its position within the scene. This makes for very confusing first experiences for new users of Qt API.

      To change the position of a rect item, setPos() should almost always be used instead.

      Attachments

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

        Activity

          People

            docteam Qt Documentation Team
            mitch_curtis Mitch Curtis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes