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

PyQt >= 5.8 stops parsing stylesheet when it sees ~=

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.8.0, 5.10.0, 5.10.1
    • Widgets: Style Sheets
    • None
    • Windows, Linux

    Description

      Qt >= 5.8 stops parsing stylesheet when it sees ~=

      Previously working code (5.7.1 and earlier) now broken. It sets a single large stylesheet on the top widget then dynamically sets a property on widgets which receive styling via ~= in the sheet, e.g.

      QWidget[style_class~='unfocused_pane'] {
          border-color: blue;
          border-width: 3px;
          border-style: solid;
      }
      

      Here's a minimal PyQt exmaple (also attached to this report)
      https://gist.github.com/tbnorth/76191db825cc49dcca296ffb8d777047

      Attachments

        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
            tbnorth Terry Brown
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes