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

QComboBox list cannot display strikeOut text in its list on mac

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.9.0
    • Widgets: Itemviews
    • None
    • macOS
    • 63a5487c4 (master), 3fbdb3142 (dev)

    Description

      class TestProxyModel : public QIdentityProxyModel
      {
      public:
      QVariant data(const QModelIndex &index, int role) const override
      {
      if (role==Qt::FontRole) {
      QFont font;
      font.setItalic(true);
      font.setStrikeOut(true);
      return font;
      }
      return QIdentityProxyModel::data(index, role);
      }
      };
      
      QComboBox::setModel(new TestProxyModel());

      When trying to set "StrikeOut = true", the item is not painted with a strike through line.

      https://github.com/qt/qtbase/blob/323f408be6bcf5bfa5e2d447be94381556e52a62/src/plugins/styles/mac/qmacstyle_mac.mm#L4288

      Is missing https://developer.apple.com/documentation/uikit/nsstrikethroughstyleattributename

       

      Attachments

        Issue Links

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

          Activity

            People

              qt.team.quick.subscriptions Qt Quick and Widgets Team
              madwinter Marcus Tillmanns
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes