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

Stylesheets are still broken on OSX

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 4.7.4, 4.8.3, 5.11
    • Widgets: Style Sheets
    • None
    • macOS

    Description

      Attached screenshot is from the Stylesheet demo from Qt 4.8.3 (binary downloaded) running on Mountain lion, but stylesheets have had problems since at least 4.7 on Snow Leopard.

      1) Radio buttons and check boxes cannot be styled.
      2) Spinbox buttons cannot be styled.
      3) Combo button menu upper and lower borders cannot be styled.

      Of these (3) is the worst as it cannot be worked around without creating an entirely new custom view with custom paint events (look closely at the top ant bottom of the menu).

      It's something to do with non-editable combos. If you set the combobox as editable, apply the stylesheet, and then set it as non editable again, the styling works better. No joke (see the screen shot from the demo with the 'name' combobox menu open.

      The other screen shot is from a commercial application that use Qt CSS to style it's menus.

      Attachments

        1. Picture_2.png
          39 kB
          Daniel
        2. screenshot-1.jpg
          11 kB
          Daniel
        3. Screen Shot 2012-10-03 at 22.08.11.png
          68 kB
          Daniel
        4. Screen Shot 2012-10-03 at 22.14.34.png
          53 kB
          Daniel
        5. Screen Shot 2012-10-03 at 22.32.10.png
          59 kB
          Daniel
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            danny77uk Daniel
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes