Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Zoom in QGraphicsView
Forum Updated to NodeBB v4.3 + New Features

Zoom in QGraphicsView

Scheduled Pinned Locked Moved Solved General and Desktop
zoomqgraphicsview
4 Posts 3 Posters 1.7k Views 2 Watching
  • 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 Offline
    W Offline
    Walux
    wrote on last edited by
    #1

    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-worxR 1 Reply Last reply
    0
    • W Walux

      Hi Qt Community ,

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

      Sorry for the short post .

      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by raven-worx
      #2

      @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 BodenmannJ 1 Reply Last reply
      1
      • raven-worxR raven-worx

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

        Joel BodenmannJ Offline
        Joel BodenmannJ Offline
        Joel Bodenmann
        wrote on last edited by
        #3

        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
        1
        • Joel BodenmannJ Joel Bodenmann

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

          W Offline
          W Offline
          Walux
          wrote on last edited by Walux
          #4

          @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
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved