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

QQuickAction::iconSource does not support urls (including image:// urls)

    XMLWordPrintable

Details

    Description

      It assumes local file or Qrc:

      void QQuickAction::setIconSource(const QUrl &iconSource)
      {
          if (iconSource == m_iconSource)
              return;
      
          m_iconSource = iconSource;
          if (m_iconName.isEmpty() || m_icon.isNull()) {
              QString fileString = QQmlFile::urlToLocalFileOrQrc(iconSource);
              m_icon = QIcon(fileString);
      
              emit iconChanged();
          }
          emit iconSourceChanged();
      }
      

      Attachments

        1. test.qml
          0.6 kB
          Liang Qi
        For Gerrit Dashboard: QTBUG-31045
        # Subject Branch Project Status CR V

        Activity

          People

            Unassigned Unassigned
            jfaust Josh Faust
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes