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. Panning of scene area in QGraphicsView
Qt 6.11 is out! See what's new in the release blog

Panning of scene area in QGraphicsView

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 2 Posters 3.3k Views
  • 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.
  • J Offline
    J Offline
    Jaisan
    wrote on last edited by
    #1

    Can some one help me , how do I pan the scene area with out using of scrollbar.
    I want to pan the scene area irrespective of the scroll bar policy.

    JonBJ 1 Reply Last reply
    0
    • J Jaisan

      Can some one help me , how do I pan the scene area with out using of scrollbar.
      I want to pan the scene area irrespective of the scroll bar policy.

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by
      #2

      @Jaisan
      https://stackoverflow.com/a/4754240/489865
      https://stackoverflow.com/a/35865262/489865

      etc. ?

      1 Reply Last reply
      0
      • J Offline
        J Offline
        Jaisan
        wrote on last edited by
        #3

        he first link is working with Scroll bar , but I need to pan without scroll bar.

        I tried the second link which does not pan at all.

        JonBJ 1 Reply Last reply
        0
        • J Jaisan

          he first link is working with Scroll bar , but I need to pan without scroll bar.

          I tried the second link which does not pan at all.

          JonBJ Offline
          JonBJ Offline
          JonB
          wrote on last edited by
          #4

          @Jaisan

          he first link is working with Scroll bar , but I need to pan without scroll bar.

          A comment states:

          You no longer have to enable the scrollbars in Qt 5.0 – vsz Jan 19 '17 at 14:31

          That, and that it worked for others, is all I know.

          1 Reply Last reply
          0
          • J Offline
            J Offline
            Jaisan
            wrote on last edited by
            #5

            Solution in the link one works ,when scroll bar is enabled and its moves based on the scroll .
            If I zoom out the widget scroll bar is automatically goes off and panning is not working.

            looking for a solution that even though scroll bar is off , I am able to pan the complete scene.

            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