You can directly check the Qt sources
For example, it helped me a lot to see the graphicsview framework sources to reimplement some methods.