hard to say,
could it be that you should include <QtGui/QColor> instead of <QColor> etc ?
regards,
jh