Results 1 to 3 of 3

Thread: Zoom Options

  1. #1
    Join Date
    Feb 2006
    Location
    New Delhi,India
    Posts
    226
    Thanks
    14
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Post Zoom Options

    Hi,

    I have created a chip architecture with the help of rectangles and lines..
    That is my base design..

    Now in my project i have included few zoom options like zoom in the window or zoom out.. these are similar to any zoom options provided when handling images...

    Now what i want is that whenever i click on the zoom in, the window gets expanded by 30%.. and goes on till three more levels..
    and when i click on zoom out the window gets shrinked by the same % as it was expanded.it will act similar to any zoom options...

    how do i do that in QT?

    Thanking you,
    Kapil

  2. #2
    Join Date
    Jan 2006
    Location
    Ukraine,Lviv
    Posts
    454
    Thanks
    9
    Thanked 27 Times in 27 Posts
    Qt products
    Qt3
    Platforms
    Unix/X11 Windows

    Default Re: Zoom Options

    Yes you can. Play arround QPainter::scale ( qreal sx, qreal sy )
    a life without programming is like an empty bottle

  3. #3
    Join Date
    Feb 2006
    Location
    New Delhi,India
    Posts
    226
    Thanks
    14
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Zoom Options

    Thanks very much for the reply...

    but i could not understand much.. Can you please suggest me a tutorial for it or some code which would help me in understanding from the implementation point of view.

    with regards,
    Kapil

Similar Threads

  1. Replies: 3
    Last Post: 10th October 2011, 17:55
  2. QGLWidget with text - zoom in / zoom out
    By h123 in forum Qt Programming
    Replies: 1
    Last Post: 16th November 2008, 10:56
  3. Qt Zoom
    By csvivek in forum Qt Programming
    Replies: 3
    Last Post: 6th August 2008, 13:25
  4. how to zoom out item in View/Scene
    By nileshsince1980 in forum Qt Programming
    Replies: 7
    Last Post: 28th December 2007, 11:24
  5. Handcoder's IDE for Qt
    By magland in forum Qt-based Software
    Replies: 55
    Last Post: 7th September 2007, 16:09

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.