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

QMenu: setting border color from stylesheet does not work

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 4.7.0
    • 4.6.2
    • GUI: Look'n'Feel
    • None
    • Windows 7 x64
    • 0318f0d5a43a78831f3bf4cb043d0b2b41cd9987

    Description

      If you try to set a border on a QMenu, the color setting is ignored. For example:

      menu->setStyleSheet("border: 1px solid #ff0000");

      The 1px border is drawn, but the red color attribute is ignored. Setting the CSS attribute "border-color" is also ignored.

      This bug seems identical to #222978 but I am seeing it with Qt 4.6.2 on Windows, although the existing bug report states that it was fixed in 4.5. I also tried 4.5.2 on Linux and it works as expected.

      Attachments

        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)
            bparker Brad Parker
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes