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

QDoubleSpinBox: Style sheet Property Selector doesn't reset font back to original style

    XMLWordPrintable

Details

    • 5731fe051 (dev), 0dd2561d5 (6.9), 52103b549 (6.8)

    Description

      When customizing the font style of a QDoubleSpinBox using a Style Sheet property selector, e.g. 

      QWidget[changed="true"] {font: italic;}

      the font style of the spinbox's lineedit changes to "italic" when the "changed" property is set to true but the font style does not reset back to "normal" when the "changed" property is set to back to false.

      Steps to reproduce:

      1. Run the attached example project.
      2. Check the "toggle changed property" checkbox. Observed behavior: The font style changes from normal to italic for both the QDoubleSpinBox and QLabel.
      3. Uncheck the "toggle changed property" checkbox. Observed behavior: The font style changes from italic to normal for the QLabel and the QDoubleSpinBox button symbols but not for the QDoubleSpinBox line edit.

      Attachments

        For Gerrit Dashboard: QTBUG-131685
        # Subject Branch Project Status CR V

        Activity

          People

            chehrlic Christian Ehrlicher
            lysandra.sola Lysandra Sola
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes