@savaliya_ambani:
Lets make some order in things:
1. It is clear you are a novice, hence what I suggested at first (overloading painEvent() and rotating the widget) is beyond what you can do at the moment, since its not trivial as wysota stated (but possible!)
2. You didn't answer wysotas question - if you are working on a mobile or embedded dvice, that supports screen rotation - and that is very important.
If you are working on a device that has a system that automatically rotates the screen, you are on the wrong path.
3. If you really need to rotate your widget your self (which means, the screen or desktop stays non rotated) then the solution with QGraphicsView is probably the best, but it seems your abilities both with C++ and Qt are not sufficient (based on your questions so far).
Never the less, what aamer4u and wysota meant with this is, that you should embed you widget in to a QGraphiceView.
You will have to read about it in the documentation here:
http://doc.trolltech.com/4.6/graphic...graphicswidget
look for "Embedded Widget Support"