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

QGraphicsView: QGraphicsTextItem added to a QGraphicsRectItem with a cosmetic pen causes the right hand edge to disappear

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P4: Low
    • None
    • 4.7.0
    • Widgets: GraphicsView
    • None
    • Windows

    Description

      A QGraphicsView/Scene are created and to it, a number of items. One item is a subclass of QGraphicsRectItem and to this, a QGraphicsTextItem with the rect item as parent. A cosmetic pen is set to draw a black outline around the rect item. The right-hand edge of this rect disappears when the text item is added.

      Example now attached.

      To reproduce using the attached example, click on Test->Test One.

      You should see that the large rectangle that encloses the text item has its right hand edge missing.

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            cattell Matthew Cattell (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes