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

QVariant operator ==() for QIcons returns false all the time

    XMLWordPrintable

Details

    Description

      When setting an Icon to a QStandardItem, it always fires the dataChanged() signal. Even if the icon is the same.
      It can lead to infinite loops.
      There seem to be a good fix by doing in qguivariant::compare():
      case QVariant::Icon:
      return *v_cast<QIcon>(a).cacheKey() == *v_cast<QIcon>(b).cacheKey();

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            firedomain Qt Graphics Team (Inactive)
            finetjul Julien Finet
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes