Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-6888

After scale the view center is not under mouse, though resizing mode is set to AnchorUnderMouse

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • 4.6.1
    • 4.6.0
    • Widgets: GraphicsView
    • None
    • Qt 4.6.0, vista 64
    • 51be60532af93ac6526e76db4085283465c5baa6

    Description

      By default the Qt::WA_MouseTracking attribute is disabled, so that the MouseMove event is filtered out.

      Do following steps:
      1. Set the resizing mode to AnchorUnderMouse by calling setResizeAnchor()
      2. Call setTransform() or scale()

      Result:
      The view center is not under mouse.

      Possible fix:
      Call setAttribute(Qt::WA_MouseTracking, true) when resizing mode is set to AnchorUnderMouse.

      BTW:
      I have reported another bug about VS addin, but it was incorrectly closed.
      http://bugreports.qt.nokia.com/browse/QTBUG-6806
      Jörg Bornemann says it's caused by incorrect vcproj, but I am 100% sure it's not.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            ylopes Yoann Lopes
            chen Chen Fu
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes