Results 1 to 4 of 4

Thread: need some help on zoom.

  1. #1
    Join Date
    Dec 2008
    Location
    My spaceship needs repairs..so, I am stuck on beautiful earth
    Posts
    98
    Thanks
    25
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Post need some help on zoom.

    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.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: need some help on zoom.

    Please provide more information on what you are doing. Are you using graphics view or a plain widget or what?

  3. #3
    Join Date
    Dec 2008
    Location
    My spaceship needs repairs..so, I am stuck on beautiful earth
    Posts
    98
    Thanks
    25
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default need some help on zoom.

    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.

  4. #4
    Join Date
    Dec 2008
    Location
    My spaceship needs repairs..so, I am stuck on beautiful earth
    Posts
    98
    Thanks
    25
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: need some help on zoom.

    Hi,
    got it to work as desired using Qt::AlignHCenter and Qt::AlignVCenter.

Similar Threads

  1. QGLWidget with text - zoom in / zoom out
    By h123 in forum Qt Programming
    Replies: 1
    Last Post: 16th November 2008, 09:56
  2. Qt Zoom
    By csvivek in forum Qt Programming
    Replies: 3
    Last Post: 6th August 2008, 12:25
  3. how to zoom out item in View/Scene
    By nileshsince1980 in forum Qt Programming
    Replies: 7
    Last Post: 28th December 2007, 10:24
  4. Question regarding how to paint after zoom.
    By JonathanForQT4 in forum Qt Programming
    Replies: 2
    Last Post: 26th January 2007, 15:34
  5. Zoom Options
    By Kapil in forum Qt Programming
    Replies: 2
    Last Post: 9th March 2006, 11:19

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.