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.
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.
Please provide more information on what you are doing. Are you using graphics view or a plain widget or what?
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.
Hi,
got it to work as desired using Qt::AlignHCenter and Qt::AlignVCenter.
Bookmarks