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

Cannot change the look of QMenu::tear-off using stylesheets

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 4.7.1
    • 4.6.2
    • Widgets: Style Sheets
    • None
    • Windows Vista x64, Mac OS X 10.4
    • a49f2700c6b5c0f5851f9cfab38b5554e9530577

    Description

      It appears that customizing the appearance of the tear-off handle of a QMenu using stylesheets doesn't work. The documentation (http://doc.qt.nokia.com/4.6/stylesheet-reference.html) seems to indicate it's possible: "The tear-off is styled using the ::tear-off" (on styling QMenu).

      Here's what I've tried:

      QMenu::tear-off

      { background-color: green; color: red; border: 10px solid yellow; }

      But this has no effect, neither on Windows (Vista x64) nor on Mac OS X (10.4).

      The documentation is very sparse on how to style this specific subcontrol, so I might not be doing the right thing.

      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)
            dictoon François Beaune
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes