Results 1 to 4 of 4

Thread: Rubberband zoom

  1. #1
    Join Date
    Feb 2006
    Posts
    60
    Thanks
    21
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Rubberband zoom

    Hi,
    My app. is developed in Qt3.3.6. I am trying to implement RubberBand zoom for a view in my application. (I think QRubberBand of Qt4 does draw a rubber band)

    i.e., My widget is in a scroll view. I can select a part of my widget using rectangular rubberband(shift+left click and move mouse draws the rectangle). Then on mouse release the widget should be zoomed to the rectangular part in rubberband and the viewport of my scroll area should be the region inside the rubberband.

    Please post any code snippets if possible.

    thanking you in advance

    regards

  2. #2
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,311
    Thanked 879 Times in 827 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Rubberband zoom

    See: http://www.qtcentre.org/forum/f-qt-p...ight=QwtPicker

    If you have selected the rectangle it should be easy to adjust the viewport.

    HTH,
    Uwe

  3. The following user says thank you to Uwe for this useful post:

    sreedhar (12th September 2006)

  4. #3
    Join Date
    Feb 2006
    Posts
    60
    Thanks
    21
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Rubberband zoom

    I want zooming to be done in QT3.3.6 not in QT4.1

  5. #4
    Join Date
    Jan 2006
    Posts
    667
    Thanks
    10
    Thanked 80 Times in 74 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Rubberband zoom

    Qwt is available for Qt 3 also.

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.