Results 1 to 3 of 3

Thread: How do I traverse to a child of a SoSeparator pointer?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #3
    Join Date
    Mar 2012
    Posts
    2
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: How do I traverse to a child of a SoSeparator pointer?

    Ahh I understand. Sorry about that. I have yet to find a good one is all. The one you linked is more of a mailing list than a forum.

    Just in case someone else stumbles in here looking for the answer I think I figured it out.
    Just type cast your SoNode into a SoSeparator and it will work. (not sure this is the correct way to do things but hey it works!)

    SoSeparator * parent;
    SoSeparator * left;
    SoSeparator * right;

    parent= (SoSeparator *) Root->getChild(2); //Root->getChild(2) resolves to the top of the file I put above.
    left = (SoSeparator *) parent->getChild(2);
    right = (SoSeparator *) parent->getChild(3);
    Last edited by MisterWanderer; 9th March 2012 at 01:00.

Similar Threads

  1. Handle child of QProcess's child.
    By gcubar in forum Newbie
    Replies: 4
    Last Post: 30th November 2012, 02:59
  2. Replies: 1
    Last Post: 4th December 2010, 17:20
  3. Is there any way to traverse amount of controls in a loop?
    By mismael85 in forum Qt Programming
    Replies: 5
    Last Post: 29th November 2010, 09:31
  4. Replies: 2
    Last Post: 24th August 2008, 14:42
  5. traverse a xml tree
    By mickey in forum General Programming
    Replies: 2
    Last Post: 27th January 2008, 12:46

Tags for this Thread

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.