set gl attributes before creating the window, or some of them might be ignored (like vsync on osx); also don't skip some reloads when switching to fullscreen and back; finally did a little code re-organisation
######################################################################
# Automatically generated by qmake (2.01a) ?? 23. ??? 20:44:46 2007
######################################################################
TEMPLATE = app
TARGET =
DEPENDPATH += .
INCLUDEPATH += .
# Input
HEADERS += mainform.h pixlabel.h
SOURCES += main.cpp mainform.cpp pixlabel.cpp