Simple Qt4 class emulator