Author Topic: Setup Code::Blocks to work with QGLWidget  (Read 3645 times)

Offline Mortymus

  • Single posting newcomer
  • *
  • Posts: 2
Setup Code::Blocks to work with QGLWidget
« on: February 16, 2010, 08:45:39 pm »
Hi,
I'm just starting OpenGL development by using QT and the QGLWidget class.
I want to use the Code::Blocks IDE to manage my Projects but I can't figure out how to setup Code::Blocks so that I don't have to do the following steps by hand:
1. call "qmake -project"
2. modifie the qmake project file so it uses the OpenGL module
3. call "qmake" to create the makefile

I've already tried the QT4 project template, but that didn't work with QGLWidget.
Is there any way to automatize these steps with Code::Blocks?

Thanks in advance.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: Setup Code::Blocks to work with QGLWidget
« Reply #1 on: February 16, 2010, 08:53:25 pm »
You can try to modify the QT4 template (it is just a squirrel script) - right click -> edit script  in the File -> New -> Project dialog
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline Mortymus

  • Single posting newcomer
  • *
  • Posts: 2
Re: Setup Code::Blocks to work with QGLWidget
« Reply #2 on: February 17, 2010, 09:35:20 pm »
Hi,
I've had a look at the script file but I don't really have a clue how to modify the script so that it does what I need. Any hints on what I have to modify in the script?