Results 1 to 6 of 6

Thread: I want to draw an object in OpenGl but it draws strange thing

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2008
    Posts
    36
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    1

    Default Re: I want to draw an object in OpenGl but it draws strange thing

    I can not understand can you explain it.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,373
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    3
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: I want to draw an object in OpenGl but it draws strange thing

    The widget has to be a subclass of QGLWidget to be able to use OpenGL. Your class is derived from QMainWindow and not QGLWidget so the methods related to painting using OpenGL are never called.

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.