Results 1 to 6 of 6

Thread: How to link GLUT to Qt Project?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #6
    Join Date
    Mar 2010
    Location
    Trujillo-Peru
    Posts
    1
    Thanks
    1
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Smile Re: How to link GLUT to Qt Project?

    I resolved the problem put:

    In the file main.cpp , add
    Qt Code:
    1. #include <QApplication>
    2. #include "window.h"
    3. #include <GL/glut.h>//add
    4.  
    5. int main(int argc, char *argv[])
    6. {
    7.  
    8. glutInit(&argc, argv); //initialize glut
    9. QApplication app(argc, argv);
    10. Window window;
    11. window.show();
    12.  
    13. return app.exec();
    14. }
    To copy to clipboard, switch view to plain text mode 

    See you
    Last edited by wysota; 21st March 2010 at 01:13.

Similar Threads

  1. Translation tools problems
    By MarkoSan in forum Qt Tools
    Replies: 23
    Last Post: 22nd August 2010, 00:43
  2. How to Compile VTKDesigner2 with Qt?
    By alfredoaal in forum Newbie
    Replies: 0
    Last Post: 5th September 2008, 05:34
  3. Importing qt project to an eclipse workspace
    By isahin in forum Installation and Deployment
    Replies: 2
    Last Post: 28th January 2008, 18:00
  4. CMake and pthreads
    By Matt Smith in forum General Discussion
    Replies: 5
    Last Post: 3rd September 2006, 20:42
  5. Replies: 2
    Last Post: 11th July 2006, 14:19

Tags for this Thread

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.