Results 1 to 7 of 7

Thread: Add QGLWidget to view

Hybrid View

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

    Default Add QGLWidget to view

    Hi to all,


    I have created a pyramid by using QGLWidget. I have also a widget in which central widget is Qgraphicsview and i am and its scene many qgraphicsitem . i want to add this pyramid which is made by the help of qgjwidget but how i dont know . if uhave any idea then pls share with me...

    Thanks in advance....

    Ashish Kumar Saryar

  2. #2
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    8
    Thanked 334 Times in 317 Posts

    Default Re: Add QGLWidget to view

    QGLWidget is inherited from QWidget, so you can use the QWidget::show() function to display the widget.

    Also if u have a graphicsview, u can alter its rendering using setViewPort() function. Refer to the 40000 chips demo program in the Qt Demos

  3. #3
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts

    Default Re: Add QGLWidget to view

    { Threads merged }

    Do not start new threads on the same subject, please.
    J-P Nurmi

Similar Threads

  1. QGLWidget resize problem.
    By anderl in forum Qt Programming
    Replies: 2
    Last Post: 22nd January 2008, 08:57
  2. Replies: 2
    Last Post: 22nd July 2007, 19:21
  3. Model, View and Proxy
    By No-Nonsense in forum Qt Programming
    Replies: 2
    Last Post: 21st November 2006, 08:50
  4. Model - View Programming doubt.
    By munna in forum Qt Programming
    Replies: 4
    Last Post: 28th April 2006, 13:01
  5. Replies: 6
    Last Post: 20th April 2006, 10: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.