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

Moving a QMainWindow by dragging the Toolbar moves window over wrong distance

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.4.0 RC
    • 5.3.1
    • QPA
    • None
    • OS X 10.8.5
    • macOS
    • ae5f3df59b37e0ce8aaef27dc1e02f40def340ae

    Description

      When moving a QMainWindow by dragging an empty portion (e.g. the space between two buttons) the window is moved by a multiple of the distance the mouse has moved (at first look I'ld say the difference is exponential)

      The problem only occurs when dragging the toolbar, not the titlebar.

      • create a QToolBar and add a button, add an empty qwidget with its horizontal size policy set to expanding and add another button. I had the toolbar set to only show icons (24x24) but that probably doesn't matter.
      • Add the toolbar to the QMainWindow (top location, not movable by user). When the window is big enough one of the buttons should stick to the left margin while the other sticks to the right.
      • Moving the window by dragging the space between the buttons results in the described behavior.

      Attachments

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

        Activity

          People

            tpochep Timur Pocheptsov
            gvanvoor Gregory Van Vooren
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes