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

QStyleSheetStyle pixelMetric: when the border of a QMenu is not nul, a "double frame" is drawn (PM_MenuPanelWidth gets the border width)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 4.7.0
    • 4.6.2
    • Widgets: Style Sheets
    • None
    • 0318f0d5a43a78831f3bf4cb043d0b2b41cd9987

    Description

      When you set a border on a QMenu with style sheet, the border is drawn. But this also set the width of the PM_MenuPanelWidth and this leads to a "double frame" around the menu.

      Instead when a border is set on the QMenu, the PM_MenuPanelWidth should be always nul.

      Included a test case to reproduce and a patch candidate.

      Attachments

        1. main.cpp
          0.4 kB
        2. patch_462.txt
          0.8 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            goffart Olivier Goffart (closed Nokia identity) (Inactive)
            sanonymous Nokia Qt Support (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes