Results 1 to 2 of 2

Thread: getting hidden QGraphicsItems without using container

  1. #1
    Join Date
    Jun 2013
    Location
    Bangalore
    Posts
    27
    Thanks
    7
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default getting hidden QGraphicsItems without using container

    hi, i want to find QgraphicsItems which are hided on scene.
    if i say scene()->items() its returning what are the items present on scene, i want to get hidden items also with out using any container.

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: getting hidden QGraphicsItems without using container

    What do you mean with "hidden". items that have their visibilty switched off?
    Just iterate over the list and skip all that have isVisible() return true.

    Cheers,
    _

Similar Threads

  1. Replies: 2
    Last Post: 8th December 2010, 10:51
  2. A list of QGraphicsItems
    By Bill in forum Newbie
    Replies: 3
    Last Post: 22nd July 2009, 11:57
  3. Quick ? about qSort(Container & container)
    By JimDaniel in forum Qt Programming
    Replies: 2
    Last Post: 15th December 2007, 11:20
  4. Problems with QGraphicsItems
    By JonathanForQT4 in forum Qt Programming
    Replies: 5
    Last Post: 26th April 2007, 08:25
  5. QGraphicsItems on top of each other?
    By Morea in forum Qt Programming
    Replies: 2
    Last Post: 18th November 2006, 20:23

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.