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

QMenu Stylesheet Documentation lacks info about icon size

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.14.0
    • Documentation
    • None

    Description

      This seems to be a recurring issue: How to set the icon size on QMenu items is not clear, seams broken. See:

      In the docs there is a section about Customizing QMenu: https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qmenu

      When dealing with this it becomes clear that there is no information about setting the actual icon size of the entries or actions in a menu. I'd suggest to clear this up.

      The results of my testing so far I put in all these links up there ^
      In short: QMenu icon-size is ignored unless also QMenu::item is styled

      From what I see this at least lacks documentation but is probably also due to some issue.

      What I didn't write so far: If one sets the font-size in a QMenu-stylesheet the icon-size is ignored again, but the are remains reserved its is now aligned to the right...

      Attachments

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

        Activity

          People

            docteam Qt Documentation Team
            ewerybody Eric Werner
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes