This gzipped tar file should be extracted in a directory
qt-img++. When untarred, you
should see a top-level
Makefile with a
The entire code package relies on several libraries that
would normally be stored under the
which is not provided (that subdir contains my
timerlib libraries which
are somewhat extraneous to this example. However, as is,
the remaining code relies on these and so won't compile without
them (it is only an example of how to set up Qt).
Makefile is set up for cross-portability
between Mac OS X and Linux. It's detects which OS it's run on
and then proceeds to compile the code for each - there's no
particular user intervention required - typing
make would get an executable on either
The Qt app relies on the
src/qtimg.pro project file.
This is used in place of a
Makefile which is generated
qmake (which is invoked by the top-level
Other than that, the Qt code is fairly simple - there are two Qt
GLObjectWindow (the main window) and then
a child of this window, the
GLTexobj. The main window
is where you would provide various menu bars, sliders, buttons,
etc., and the child window is where you execute GL commands.
I made this example from one of Qt's examples, which contained a couple of sliders (I think it was the texture example).