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

Resetting StyleSheet of QSpinBox with empty string "" does not reset the font properties of the embedded QLineEdit

XMLWordPrintable

    • All

      When resetting the stylesheet of a QSpinBox with empty string, the style does not revert back to the original style. If the string instead is an empty space (" "), the style properly gets reseted. Other controls such as QPushButton properly resets the style in the same scenario.

      Steps to reproduce:

      • Run attached sample
      • Observe that the initial style sheets change the size of the controls visible
      • Press button "Reset Stylesheets"
      • EXPECTED: Both visible controls revert back to their original style
      • ACTUAL: SpinBox does not change back to original style, instead keeping the initial stylesheet look

        1. qtbug58221_after_reset.png
          qtbug58221_after_reset.png
          16 kB
        2. qtbug58221_initial.png
          qtbug58221_initial.png
          23 kB
        3. qtbug58221.zip
          2 kB
        4. qtbug58221.zip
          0.9 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            liaqi Liang Qi
            jussi_witick Jussi Witick
            Votes:
            6 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes