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

Focus ring of QComboBox is misaligned (MacOS small widgets)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.12.0, 5.14.0
    • Widgets: Styles
    • None
    • macOS

    Description

      When using small widgets on MacOS (-> QWidget::setAttribute(Qt::WA_MacSmallSize)) the focus ring position is wrong, see screenshot.

      qmacstyle_mac.mm adds an offset to the ring position, if this offset isn't set the resulting focus ring looks fine. See attached patch.

      Attachments

        1. focusring-small-combobox.png
          10 kB
          Joachim Grill
        2. patch-for-5.14.0.diff
          3 kB
          Joachim Grill
        3. removeComboboxFocusRingCorrection.diff
          1 kB
          Joachim Grill
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            tpochep Timur Pocheptsov
            jgrill Joachim Grill
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes