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

Wrong toolbar layout in Qt 5.13 (regression)

    XMLWordPrintable

    Details

    • Commits:
      f2f1a93c58b6cb88f3cd0655e95ccd5ad99286d0 (qt/qtbase/5.13)

      Description

      Toolbar contents are not vertically centered with Qt 5.13 anymore. That may not be easily seen with Fusion but, in the attached screenshot, I've intentionally set "PM_ToolBarItemMargin" and "PM_ToolBarFrameWidth" to 10 for it to be clearly visible with the Kvantum widget style.

       

      I've also attached a diff file that shows the differences between qtoolbarlayout.cpp in Qt 5.12 and Qt 5.13. The coefficient 2 is missing in several places of Qt 5.13 (search for "2*" in the diff file).

       

      EDIT: The fix is also attached.

        Attachments

        1. fix.diff
          0.8 kB
        2. qtbug_77115.png
          qtbug_77115.png
          26 kB
        3. qtbug_77115.tgz
          2 kB
        4. qtoolbarlayout.cpp.diff
          7 kB
        5. toolbar.png
          toolbar.png
          4 kB
        For Gerrit Dashboard: QTBUG-77115
        # Subject Branch Project Status CR V

          Activity

            People

            Assignee:
            chehrlic Christian Ehrlicher
            Reporter:
            tsujan Tsu Jan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes