Results 1 to 7 of 7

Thread: Qt4 Lib -- Linker Problems Qt4/OpenGL

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    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
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: Qt4 Lib -- Linker Problems Qt4/OpenGL

    Please don't use 3rd party sites for image storage, we really don't like it.

    I can't help you with your application without seeing any code My guess is that your paintGL() is messed up.

  2. #2
    Join Date
    Jan 2009
    Location
    N 38d 51.9m W 104d 47.5m
    Posts
    4
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt4 Lib -- Linker Problems Qt4/OpenGL

    No problem; what do you do for pics instead then?

    Okay, the PaintGL method:
    Qt Code:
    1. void GLWidget::PaintGL() {
    2. glClear( GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT );
    3. glLoadIdentity();
    4. glTranslated( 0.0, 0.0, -10.0 );
    5. glRotated( ( xRot / 16.0 ), 1.0, 0.0, 0.0 );
    6. glRotated( ( yRot / 16.0 ), 0.0, 1.0, 0.0 );
    7. glRotated( ( zRot / 16.0 ), 0.0, 0.0, 1.0 );
    8. glCallList( object );
    9. }
    To copy to clipboard, switch view to plain text mode 

    I'm fairly certain it's not messed up.

    Apparently, I'm allowed to only upload five files. If you'd like the Makefile and/or the .pro file, let me know.
    Attached Files Attached Files

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.