[Qt-interest] implementing scrollbars

Avishek_Sharma Avishek_Sharma at satyam.com
Wed Dec 17 14:04:26 CET 2008


Thanks a lot for the code and the explanation.I will try it out.
Regards,
Avi

---------------------------------------------------------------------------------------------------------

...........So basically you will need to make a qscrollview inside your form and put the label as a child of that qscrollview. Apart from setting the enlarged image as the pixmap of the label, you will also need to resize the label to the size of the new picture. ...............

Khizer




________________________________
Subject: [Qt-interest] implementing scrollbars

................ {
   case Zoom50:
         /* what and where to write to bring in the scroll bars*/
         pm=pictureresize(path_of_pic,1500,600);                   //pictureresize() is a manually created  function
                                                                                        //to resize pics

         pic_display->setPaletteBackgroundPixmap(pm);          //pic_display is the label on which I need to show
                                                                                         //the  final enlarged pic with the scrollbars
         break;
    case Zoom75:
        ...................
}

I went over QScrollView and QScrollArea but couldn't understand the codes properly.
Please give me some idea on what to do.I need to do this for for Qt 3.3 and 4.3...............................................................



________________________________
DISCLAIMER:
This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20081217/99a602f6/attachment.html 


More information about the Qt-interest-old mailing list