PDA

View Full Version : QGraphicsView without scroll bar



sanjayshelke
20th July 2009, 11:05
Hi,
I need to have QgraphicsView without any scrollbar.
Is that possible?

regards,
~Sanjay

nish
20th July 2009, 11:08
Qt::ScrollBarAlwaysOff

sanjayshelke
20th July 2009, 11:19
Yes i got it.

by using setHorizontalScrollPolicy and setVerticalScrollPolicy we can achieve that.

sanjayshelke
20th July 2009, 11:21
One more query regarding this.

I am scaling the QGraphicsView, but scaling the view seems changing the items position.

e.g if i have created the item and it is placed at top left corner of the view.
then scaling the view should maintain the top left position of the items, but item should get scaled.


How can it be done?


Regards,
~Sanjay

wagmare
20th July 2009, 12:17
are u reimplementing resizeEvent() .?