PDA

View Full Version : need some help on zoom.



rishiraj
6th January 2009, 10:52
Hi everyone.
In my application,when I use zoom,the top left portion of the picture gets the focus.How to set it so that the centre of the picture gets the focus?(any command which does that?)
Please advice.
Thanks.

wysota
6th January 2009, 11:58
Please provide more information on what you are doing. Are you using graphics view or a plain widget or what?

rishiraj
6th January 2009, 13:03
My apologies.Was in a hurry so forgot to give details.
It's a simple picture gallery.When I click on the thumbnail it enlarges to a larger size.
I am displaying this enlarged picture on a 'TextLabel'.When I try to zoom this enlarged pic, I would prefer the focus to be at the centre of the pic.In my case it's on the top left side of the pic.
Thanks for your time.

rishiraj
7th January 2009, 04:34
Hi,
got it to work as desired using Qt::AlignHCenter and Qt::AlignVCenter.