Alex, I agree and appreciate your reply to Tang.
Other than this I created a sample program and it seems to work fine, If you delete a QGraphicsItem - it will get removed from Scene irrespective of whether scene is the parent item or any other item is it's parent item. I wonder why is he getting issue... - He should paste his code snippet. On Tue, Feb 26, 2013 at 8:15 PM, Alex Malyushytskyy <[email protected]>wrote: > Tang, > > First of all question asked does not deserve the answer you gave. > It was not offensive, the direct answer is not provided in documentation. > And since in some cases scene ( for example if item with scene as a > parent is deleted) is updated, > somebody could expect that such happens even if child of such item is > deleted. > > > You must know the relation of QGraphicsScene, QGraphicsView and > > QGraphicsItem. > > > > The QGraphicsView display the item of QGraphicsScene. > > I see no sense in your comment above. > All it claims is that Earth is round. > > I would not say it if you tried to help, but all I see are attempts to > piss off people. > > If you meant that my advice was incompetent and you suggest view > update to be called you better follow your own advice on reading > documentation. > Scene can be attached to multiple views and calling update for the > scene will schedule updates for all views. > Even if it was incorrect, it is much better than you gave. > Trust me I gave the best advice I could provide taking into account > provided information. > You indeed made an assumption that person asking the question was not > trying to look in documentation - > basically called a person asking a legit question an idiot. > > Alex > > > On Tue, Feb 26, 2013 at 4:58 PM, tang ke <[email protected]> wrote: > > You must know the relation of QGraphicsScene, QGraphicsView and > > QGraphicsItem. > > > > The QGraphicsView display the item of QGraphicsScene. > > > > > > On 02/27/2013 08:15 AM, Alex Malyushytskyy wrote: > >> > >> Is it still shown if you force graphics window to update (might be > >> just by minimizing/ maximizing or resizing) ? > >> If not it means that scene was not updated and you can fix it calling > >> QGraphicsScene::update yourself. > >> > >> Alex > >> > >> On Sun, Feb 24, 2013 at 5:00 AM, tang ke <[email protected]> wrote: > >>> > >>> On 02/24/2013 07:56 PM, Vincent Cai wrote: > >>>> > >>>> Dear All, > >>>> > >>>> I have a QGraphicsEllipseItem whose parent is a QGraphicsRectItem > >>>> which is shown on a scene. > >>>> > >>>> When I delete the QGraphicsEllipseItem, why it is still shown on the > >>>> scene? > >>>> > >>>> How can I remove it from the scene? > >>>> > >>>> Thanks, > >>>> > >>>> Vincent. > >>>> > >>>> This message and any attachments may contain Cypress (or its > >>>> subsidiaries) confidential information. If it has been received in > >>>> error, please advise the sender and immediately delete this message. > >>>> > >>>> > >>>> _______________________________________________ > >>>> Interest mailing list > >>>> [email protected] > >>>> http://lists.qt-project.org/mailman/listinfo/interest > >>> > >>> You can get the answer from the qt doc. > >>> > >>> Good luck. > >>> > >>> -- > >>> 应用部 唐科 > >>> TEL : 0512-52308661-88686 > >>> FAX: 0512-52308688 > >>> MP : 18962393077 > >>> E-mail: [email protected] > >>> 地址:江苏省常熟市虞山镇梦兰工业园 > >>> > >>> _______________________________________________ > >>> Interest mailing list > >>> [email protected] > >>> http://lists.qt-project.org/mailman/listinfo/interest > >> > >> _______________________________________________ > >> Interest mailing list > >> [email protected] > >> http://lists.qt-project.org/mailman/listinfo/interest > > > > > > > > -- > > 应用部 唐科 > > TEL : 0512-52308661-88686 > > FAX: 0512-52308688 > > MP : 18962393077 > > E-mail: [email protected] > > 地址:江苏省常熟市虞山镇梦兰工业园 > > > _______________________________________________ > Interest mailing list > [email protected] > http://lists.qt-project.org/mailman/listinfo/interest >
_______________________________________________ Interest mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/interest
