#ifndef COUNTER_H_INCLUDED
#define COUNTER_H_INCLUDED
#include <QtGui> //include todo
try
#ifndef COUNTER_H_INCLUDED
#define COUNTER_H_INCLUDED
#include <QtGui/QWidget>
#include <QtGui/QPushButton>
or
#ifndef COUNTER_H_INCLUDED
#define COUNTER_H_INCLUDED
#include <QWidget>
#include <QPushButton>
if you use your own slots, read info about MOC utility and add to Pre-Build step moc-info file generation
my bachelor project : mingw gcc 3.4.5 & Qt 4.3.1 with CB project files on win2k3
http://www.download.mware.ru/mwOCR.v.0.0.1.24.7z
/* I'm sorry my english, I speak ukranian and russian.*/
in attached test.7z your code. work on win2k3sp2 & qt 4.3.2 & vista platform sdk
[attachment deleted by admin]