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. Change response of render window to interactions
Qt 6.11 is out! See what's new in the release blog

Change response of render window to interactions

Scheduled Pinned Locked Moved Solved General and Desktop
6 Posts 2 Posters 584 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.
  • A Offline
    A Offline
    AdviInfo
    wrote on last edited by
    #1

    I am using a Qvtkwidget to display images in an application. Image interactions are enabled via render window interactor. vtkinteractorstyle image is used. Clicking and dragging on the image results in window and level change. However the scale of this change is drastic. Is there any way to reduce the range of this change? Or rather change the response of click and drag to say, panning the image.

    Pressing down shift button + click and drag OR
    Mouse wheel down and drag, results in panning the image.
    Could it be manipulated so that simple click and drag pans the image.

    1 Reply Last reply
    0
    • A AdviInfo

      @SGaist That helped a lot. Thank you!!!

      A Offline
      A Offline
      AdviInfo
      wrote on last edited by
      #6

      @AdviInfo The solution to this is to create a custom interactor class deriving from existing types

      1 Reply Last reply
      1
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #2

        Hi and welcome to devnet,

        That is something you should ask to the VTK folks.

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        0
        • A Offline
          A Offline
          AdviInfo
          wrote on last edited by
          #3

          I wasn't sure how to catch a VTK event to a qt slot. Was hoping to get some insight in that direction. Thank you for the response :)

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #4

            Are you looking for something like this example ?

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            A 1 Reply Last reply
            2
            • SGaistS SGaist

              Are you looking for something like this example ?

              A Offline
              A Offline
              AdviInfo
              wrote on last edited by
              #5

              @SGaist That helped a lot. Thank you!!!

              A 1 Reply Last reply
              0
              • A AdviInfo

                @SGaist That helped a lot. Thank you!!!

                A Offline
                A Offline
                AdviInfo
                wrote on last edited by
                #6

                @AdviInfo The solution to this is to create a custom interactor class deriving from existing types

                1 Reply Last reply
                1

                • Login

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