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

QIcon, themes and desktop specifications

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3: Somewhat important
    • None
    • 5.3.1
    • GUI: Look'n'Feel
    • None

    Description

      // HICOLOR
      QString currTheme = QIcon::themeName();
      QIcon::setThemeName("hicolor");
      qDebug() << QIcon::themeName();
      if (QIcon::hasThemeIcon(_iconName))

      { QIcon retval = QIcon::fromTheme(_iconName); QIcon::setThemeName(currTheme); qDebug() << QIcon::themeName(); return retval; }

      This does not return the icon of qtcreator. _iconname is "QtProject-qtcreator.png". But it is there:

      $ find /usr/ -iname *QtProject-qtcreator.png
      /usr/share/icons/hicolor/24x24/apps/QtProject-qtcreator.png
      /usr/share/icons/hicolor/32x32/apps/QtProject-qtcreator.png
      /usr/share/icons/hicolor/16x16/apps/QtProject-qtcreator.png
      /usr/share/icons/hicolor/256x256/apps/QtProject-qtcreator.png

      Attachments

        1. outputs.txt
          1.0 kB
        2. QTBUG-42239.tar.gz
          1 kB
        3. qtbug42239.zip
          2 kB
        4. show.png
          show.png
          128 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kleint Friedemann Kleint
            manuelschneid3r Manuel Schneider
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes