Results 1 to 2 of 2

Thread: How to draw items from same scene in different views?

  1. #1
    Join Date
    Dec 2006
    Posts
    426
    Thanks
    8
    Thanked 18 Times in 17 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default How to draw items from same scene in different views?

    Hi,

    I have a scene with 3 different items (each with many child items), say item1, item2, and item3.

    I need to draw them in 2 different views

    In view1, I want to draw all items with option to show or hide item1 by using item1->setVisible( true/false ).
    In view 2, I want to always draw item1, regardless its visibility in view1.

    How can I achieve this?


    Thanks!

  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: How to draw items from same scene in different views?

    All views using the same scene show the same scene. if the scene has certain items visible, those will be visible in all views that show the area of where the item is.

    If you want different scenes, use different scenes.

    Cheers,
    _

Similar Threads

  1. Scene vs. multiple views
    By lni in forum Qt Programming
    Replies: 16
    Last Post: 19th July 2022, 01:47
  2. Replies: 7
    Last Post: 26th June 2009, 19:33
  3. add items into scene
    By Noxxik in forum Qt Programming
    Replies: 0
    Last Post: 9th March 2009, 16:32
  4. Can't move Items in the scene
    By maverick_pol in forum Qt Programming
    Replies: 2
    Last Post: 16th May 2008, 09:40
  5. Moving items between two views.
    By YuriyRusinov in forum Qt Programming
    Replies: 11
    Last Post: 2nd April 2007, 13:53

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.