[Qt-interest] I want to Zoom in and Zoom out QDesktopWidget

Chandru... sekarwagmare at gmail.com
Mon May 18 07:24:14 CEST 2009


use QTransform ..
     scale(), translate() and all its functions in QPainter ...
http://doc.trolltech.com/4.3/qtransform.html

it is better to use QGraphicsScene() as the base .....

On Mon, May 18, 2009 at 10:29 AM, Sai Chandra
<Sai.Chandra at lntinfotech.com>wrote:

>
> hi all,
>       Here goes my code..
>        QDesktopWidget *screen = QApplication::*desktop*();
>     QRect appRect = screen->*availableGeometry*(screen->*primaryScreen*
> ());
>
> Now I have my image on appRect. Now I am declaring some thing like this..
>
>         QRect drawRect;
>         QImage image;
>         QPainter painter(&image);
>
> Now I must zoom the image on drawRect and paint back the zoomed image on
> painter.
>
> May I have any suggestions on how to increase the geometry of the image so
> that is appears as a zoomed image...
>
>
> Thank You
>
> Regards,
>
> Sai Chandra G.V,
> PES,
> L&T Infotech Ltd,
> Plot No 25-31,EPIP Phase II,
> KIADB Industrial Area,Whitefield,
> BANGALORE-66,INDIA
> Mobile:+91 9900200782
> Office: 080-66241296
>
> *
> Larsen & Toubro Infotech Ltd.**
> **www.Lntinfotech.com* <http://www.lntinfotech.com/>
>
> This Document is classified as:
>
> L&T Infotech Proprietary   L&T Infotech Confidential   L&T Infotech
> Internal Use Only   L&T Infotech General Business
>
> This Email may contain confidential or privileged information for the
> intended recipient (s) If you are not the intended recipient, please do not
> use or disseminate the information, notify the sender and delete it from
> your system.
> ______________________________________________________________________
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>


-- 
WAGMARE
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090518/1d037225/attachment.html 


More information about the Qt-interest-old mailing list