Skip to content


A QT Project – Fractal generator – Getting started

Recently I just started to learn programming with QT. To be honest I actually already wrote lots of code with QT but I mainly modified or developed further existing programs. Now, I want to fully understand the development of QT GUI applications from scratch. I also like to play with fractal generators, so I thought it would be a good idea to write a fractal generator in QT. The end product is not really useful since there are lots of good fractal generators available for free, but it will be fun to write one for sure. I haven’t decided yet whether it will be just a simple Mandelbrot generator or something more sophisticated. We will see. First I will just concentrate on the UI. Anyway, I downloaded Tierazon sources from here, just in case I want to go further :)

OK. Lets start. First of all we will need QT environment. I’m using Ubuntu Linux. I set up QT from sources. It is really easy. Download the newest sources from Trolltech.

Then the usual stuff follows:

configure
make
make install

OK. if everything went fine so far we are almost done.

To be able to compile anywhere in my directory structure I had to add some QT environment variables.

So I added the followings to the end of my .bashrc

export QTDIR=’/usr/local/Trolltech/Qt-4.4.3′
export PATH=$QTDIR/bin:$PATH
export QMAKESPEC=$QTDIR/mkspecs/linux-g++

Here are some fractals I have generated with Tierazon

Posted in Graphics, QT Programming.

Tagged with , , , , , , , .