x11Event() is not available on win32. I see that you are using Cygwin (for what purpose?) but you'd need Qt built for Cygwin to have a chance to have x11Event() defined (although I doubt it'd be there).