adding fMod guts to Qt