Results 1 to 3 of 3

Thread: Problem with QGLWidcet including

  1. #1
    Join Date
    Jan 2011
    Posts
    5
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Problem with QGLWidcet including

    Hi,
    I`d like to make a Qt application using also OpenGL. I`ve read some articles about it and there was only info that i have to ad
    #include <QGLWidget>
    I`ve done it, and nothing was included, and the build error appeared, that there isn`t anything like this. Is there possibility, that I`ve canceled installation of this library during Qt installation or it is another reason of this?
    I`m using Qt Cretor 2.0.1 which is based on Qt 4.7.0.

  2. #2
    Join Date
    Jul 2009
    Location
    Enschede, Netherlands
    Posts
    462
    Thanked 69 Times in 67 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Problem with QGLWidcet including

    Open the .pro file and add something like
    Qt Code:
    1. QT += opengl
    To copy to clipboard, switch view to plain text mode 
    Horse sense is the thing that keeps horses from betting on people. --W.C. Fields

    Ask Smart Questions

  3. The following user says thank you to franz for this useful post:

    sebap123 (27th January 2011)

  4. #3
    Join Date
    Jan 2011
    Posts
    5
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Problem with QGLWidcet including

    Ok, thank you. Now it works.

Similar Threads

  1. Problem of including Widgets into DLL
    By dsedov in forum Qt Programming
    Replies: 15
    Last Post: 14th July 2021, 23:05
  2. Problem including library (dllimport)
    By cae in forum Qt Programming
    Replies: 9
    Last Post: 28th May 2010, 06:53
  3. Problem with including lib files
    By metow in forum Qt Tools
    Replies: 2
    Last Post: 12th December 2009, 21:57
  4. Replies: 3
    Last Post: 10th May 2008, 17:36
  5. Algorithms problem of brackets including.
    By luffy27 in forum General Programming
    Replies: 2
    Last Post: 12th April 2007, 01:10

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.