[Interest] how to remove QGraphicsEllipseItem from parent

tang ke tangk at lemote.com
Wed Feb 27 01:58:10 CET 2013


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 <tangk at lemote.com> 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
>>> Interest at qt-project.org
>>> 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: tangk at lemote.com
>> 地址:江苏省常熟市虞山镇梦兰工业园
>>
>> _______________________________________________
>> Interest mailing list
>> Interest at qt-project.org
>> http://lists.qt-project.org/mailman/listinfo/interest
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest


-- 
应用部  唐科
TEL : 0512-52308661-88686
FAX: 0512-52308688
MP : 18962393077
E-mail: tangk at lemote.com
地址:江苏省常熟市虞山镇梦兰工业园




More information about the Interest mailing list