Results 1 to 8 of 8

Thread: Zoom functionality on pushbutton

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Dec 2012
    Posts
    10
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Zoom functionality on pushbutton

    Dear ,
    All work well but i am not able to call Qgraphicsview Wheel event which is in else function............. i am getting
    error: ‘virtual void QGraphicsView::wheelEvent(QWheelEvent*)’ is protected

  2. #2
    Join Date
    Mar 2011
    Location
    Hyderabad, India
    Posts
    1,882
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    3
    Thanked 453 Times in 435 Posts
    Wiki edits
    15

    Default Re: Zoom functionality on pushbutton

    What version of Qt?

    I example I posted compiles and run with Qt 4.8.1 and MinGw 4.6.2.

    Show us what you did?
    Last edited by Santosh Reddy; 7th January 2013 at 11:48.
    When you know how to do it then you may do it wrong.
    When you don't know how to do it then it is not that you may do it wrong but you may not do it right.

  3. #3
    Join Date
    Dec 2012
    Posts
    10
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Zoom functionality on pushbutton

    i have QT 4.7.3(i have develop application in Linux Platform)
    In my project i have taken QWidget application and on that i have added Qgraphicsview and Qgraphicsscene is added to graphicsview. and i am drawing the object in graphicsview using painterpath i have widget of size 1280x1024 . and graphicsview of 1141x991
    Last edited by chirudi; 8th January 2013 at 05:30.

  4. #4
    Join Date
    Mar 2011
    Location
    Hyderabad, India
    Posts
    1,882
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    3
    Thanked 453 Times in 435 Posts
    Wiki edits
    15

    Default Re: Zoom functionality on pushbutton

    and what is graphicsscene rect size?
    When you know how to do it then you may do it wrong.
    When you don't know how to do it then it is not that you may do it wrong but you may not do it right.

Similar Threads

  1. Replies: 3
    Last Post: 29th April 2011, 09:54
  2. how to zoom in zoom out tableview in QT programming?
    By nageshvk in forum Qt Programming
    Replies: 0
    Last Post: 27th October 2010, 06:05
  3. QWTPlot Zoom: cannot zoom negative value
    By jwieland in forum Qwt
    Replies: 0
    Last Post: 8th January 2010, 17:16
  4. Replies: 1
    Last Post: 16th November 2009, 06:25
  5. QGLWidget with text - zoom in / zoom out
    By h123 in forum Qt Programming
    Replies: 1
    Last Post: 16th November 2008, 10:56

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
  •  
Qt is a trademark of The Qt Company.