Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Forum Updated on Feb 6th

    Solved Zoom in QGraphicsView

    General and Desktop
    zoom qgraphicsview
    3
    4
    1151
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • W
      Walux last edited by

      Hi Qt Community ,

      How do I zoom in/out in a QGraphicsView ?
      (Ofcourse , my QGraphicsScene is wide enough .)

      Sorry for the short post .

      Taking things from beginning to end : That's my entertainment !

      raven-worx 1 Reply Last reply Reply Quote 0
      • raven-worx
        raven-worx Moderators @Walux last edited by raven-worx

        @Walux
        using QTransform and do scaling on it. Then set the trasnformation on the view (QGraphicsView::setTransform()).

        --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
        If you have a question please use the forum so others can benefit from the solution in the future

        Joel Bodenmann 1 Reply Last reply Reply Quote 1
        • Joel Bodenmann
          Joel Bodenmann @raven-worx last edited by

          You can also directly use QGraphicsView::scale().

          Industrial process automation software: https://simulton.com
          Embedded Graphics & GUI library: https://ugfx.io

          W 1 Reply Last reply Reply Quote 1
          • W
            Walux @Joel Bodenmann last edited by Walux

            @Joel-Bodenmann
            @raven-worx

            They're all good answers :)
            Thank you very much :)

            Taking things from beginning to end : That's my entertainment !

            1 Reply Last reply Reply Quote 0
            • First post
              Last post