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

QGraphicsGridLayout, removing items

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Done
    • P2: Important
    • 4.8.0
    • 4.4.3
    • Widgets: GraphicsView
    • None
    • ae1a4a918137e99417e70a4f2c2c43f14406f993

    Description

      Right now the only way to remove items is removeAt(int index). If you are keeping up with items pointers, there is no easy way to just removeLayoutItem(QGraphicsLayoutItem *item) and there should be.

      The current solution to this is to itemAt() to find your item, and then pass that index on to removeAt() so that it can again use itemAt internally to find the pointer to your QGraphicsLayoutItem to remove it.

      Attachments

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

        Activity

          People

            smd Jan Arve
            janichol Andy Nichols
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes