Results 1 to 20 of 27

Thread: Coin3d + Qt: SIGLNALs and SLOTs

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #15
    Join Date
    Nov 2006
    Location
    Shrewsbury, UK
    Posts
    97
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    3
    Thanked 11 Times in 11 Posts

    Default Re: Coin3d + Qt: SIGLNALs and SLOTs

    Here's a bit of a hackaround with your code.

    I've used the old setXRotation in the coinwidget as a wrapper for the model (now promoted to be a class member). Model now its own setXRotation(float angle), but this is just a standard method available to the proxy. The order of adding children to the root is important - think left to right - so
    Qt Code:
    1. root->addChild(myRot);
    2. root->addChild(new SoCone);
    To copy to clipboard, switch view to plain text mode 
    works but
    Qt Code:
    1. root->addChild(new SoCone);
    2. root->addChild(myRot);
    To copy to clipboard, switch view to plain text mode 
    appears not to as the cone is now left of the rotation. Anyway the attached zip file was working for me. But remember that this technique is rotating the objects in "world space" - not just rotating the camera postion around the scene.

    Pete
    Attached Files Attached Files

  2. The following user says thank you to pdolbey for this useful post:

    vonCZ (12th May 2007)

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.