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

Font-style in an item in QMenu does not work unless any padding or margin property is set to any value

    XMLWordPrintable

Details

    • 1adb1ef6bab6247f5914e94380f8b05e11cb8d7e (qtbase/5.9, 15.12.2017, 5.9.4)

    Description

      Setting Font-style to an item in QMenu does not work unless any padding or margin property is specified. Any of the padding or margin properties (bottom, top, left, right or all of it) can be set to some value for the font-style to work.

      This also applies if the italics / bold is set through a QFont set to the menu item, instead of setting it through a style sheet.

      Steps to reproduce:

      • Run attached sample
      • Open the menu and observe the items state
      • Press "does not work" button which applies the second style sheet
      • EXPECTED: Items in the menu are italic
      • ACTUAL: Items in the menu are back to their original state, without italic

      The "this works" button applies the first style sheet, for a working use-case.

      Attachments

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

        Activity

          People

            kleint Friedemann Kleint
            jussi_witick Jussi Witick
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes