I had a Qt3 app that used QEvents setData method and I am porting this to Qt4. I noticed there is not setData function anymore.

I read in the docs that you should subclass QEvent.

Does anyone have an example of how to subclass QEvent to make custom events and how to set the data for that custom event?