Results 1 to 3 of 3

Thread: 3D Items ( Bug )

  1. #1
    Join Date
    Jul 2007
    Location
    Noida
    Posts
    46
    Thanks
    7
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default 3D Items ( Bug )

    hi to all

    Qt Code:
    1. QPyramidTool *pPiramidObj = new QPyramidTool( );
    2.  
    3. m_scene->addItem( qobject_cast<QGraphicsWidget *>(pPiramidObj) );
    To copy to clipboard, switch view to plain text mode 
    here QPyramidTool is QGlwidget.

    i have made pyramid by using it .

    m_scene is QGraphicsScene .

    I am adding this QGLWidget to this scene .
    It didn't give any error but i doesn't show.
    I have to seen this pyramid on my scene how it will become possible .
    Pls share your ideas.

    Thanks...
    Last edited by jpn; 20th February 2008 at 07:16. Reason: reformatted to look better
    Ashish Kumar Saryar

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: 3D Items ( Bug )

    Does QPyramidTool inherit QGraphicsWidget?

  3. #3
    Join Date
    Feb 2008
    Posts
    26
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: 3D Items ( Bug )

    As far as I know, you have to use QGLWidget for your QGraphicsView class, not QPyramidTool. I don't think your approach will work because QGLWidget is a completely different window, which can't be added as an item.

    When you do what I proposed, you can set your projection matrix in QPyramidTool and render the 3d objects or whatever else you would like to render.

Similar Threads

  1. Arranging the Items in Qtopia
    By sar_van81 in forum Qt for Embedded and Mobile
    Replies: 3
    Last Post: 10th December 2007, 08:52
  2. Light items for the graphicsView
    By maverick_pol in forum Qt Programming
    Replies: 12
    Last Post: 1st November 2007, 18:51
  3. Occurance of Duplicate items in QComboBox
    By merry in forum Qt Programming
    Replies: 8
    Last Post: 12th September 2007, 15:05
  4. QGraphicsItem problem - how to save items info ??
    By aamer4yu in forum Qt Programming
    Replies: 3
    Last Post: 17th October 2006, 12:17
  5. Selective highlighting of Items
    By Kapil in forum Qt Programming
    Replies: 3
    Last Post: 26th May 2006, 12:20

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.