Feature remove qt3 in paintings

I remove qt3 in paintings directory except q3ptrlist.
I also examine all the include in header file and source code. Remove some unnecessary include and add some headers required.