Results 1 to 2 of 2

Thread: problem in QGraphicsItemGroup

  1. #1
    Join Date
    Sep 2008
    Location
    Bangalore
    Posts
    659
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    116
    Thanked 42 Times in 41 Posts

    Default problem in QGraphicsItemGroup

    hi friends,
    i want to show and hide certain group of items in my graphicsScene() .... so i group these items using item group ...

    Qt Code:
    1. QList<QGraphicsItem *> x86List;
    2. QGraphicsItemGroup *x86Group ;
    To copy to clipboard, switch view to plain text mode 
    and i appended the items to x86List one by one ...
    and then

    Qt Code:
    1. x86Group = scene->createItemGroup(x86List);
    2. x86Group->setHandlesChildEvents (false );
    To copy to clipboard, switch view to plain text mode 

    but when i assign x86Group = scene->createItemGroup(x86List); it start showing the items in the scene ... but i want to add it under certain function call only ...

    i dont know how to hide the group beforre the condition met ...

    please help

  2. #2
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    8
    Thanked 334 Times in 317 Posts

    Default Re: problem in QGraphicsItemGroup

    How about trying to call x86Group->hide();
    Since QGraphicsItemGroup is inherited from QGraphicsItem

  3. The following user says thank you to aamer4yu for this useful post:

    wagmare (14th May 2009)

Similar Threads

  1. deployment problem: msvc++ 2008 Express, Qt 4.4.3
    By vonCZ in forum Qt Programming
    Replies: 7
    Last Post: 10th November 2008, 15:38
  2. Weird problem: multithread QT app kills my linux
    By Ishark in forum Qt Programming
    Replies: 2
    Last Post: 8th August 2008, 10:12
  3. Steps in solving a programming problem?
    By triperzonak in forum General Programming
    Replies: 8
    Last Post: 5th August 2008, 09:47
  4. Tricky problem with ARGB widget / UpdateLayeredWindow
    By nooky59 in forum Qt Programming
    Replies: 3
    Last Post: 21st February 2008, 11:35
  5. Replies: 16
    Last Post: 7th March 2006, 16:57

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.