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

QTableWidget stylesheet stays on headers after removal

    XMLWordPrintable

Details

    Description

      When a font stylesheet (e.g. "QWidget { font-style: italic; font-weight: bold; text-decoration: underline; }") that's been applied to a QTableWidget is removed using QWidget::setStyleSheet(""), the styling is removed from the cells but remains applied to the headers.

      To reproduce, run the attached example project.

      Attachments

        1. 1 - Start.png
          1 - Start.png
          19 kB
        2. 2 - Style On.png
          2 - Style On.png
          20 kB
        3. 3 - Style off.png
          3 - Style off.png
          19 kB
        4. qtbug134701.zip
          2 kB
        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
            lysandra.sola Lysandra Sola
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes