Hello forum,

I am trying to make a simple modern opegl application with qt5. I have defined the
Qt Code:
  1. QT += opengl
To copy to clipboard, switch view to plain text mode 
inside the .pro file.

Then inside the class declaration i am declaring a variable as follows:

Qt Code:
  1. class scene : pulic abstractscene
  2. {
  3. Q_OBJECT
  4.  
  5. public:
  6. .......................
  7. .......................
  8. private:
  9.  
  10. GLint vertices;
  11. }
To copy to clipboard, switch view to plain text mode 

I am getting the error at "GLint vertices" with the message mentioned in the title.

Any clue ?


Thanks