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

QIcon::setThemeName(QIcon::themeName()); needs to be called to display Adwaita icon on KDE Plasma

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • 5.15
    • GUI: Painting
    • None
    • KDE Plasma 5.25 X11 or Wayland
    • Linux/Wayland

    Description

      Hello, I was trying on KDE Plasma 5.25 to display an icon in C++ using:

      QIcon icon = QIcon::fromTheme("window-close-symbolic");

       

      This works for every icon theme I tried, except for Adwaita. I managed, however, to get the Adwaita icon to display by preceding the above with:

      QIcon::setThemeName(QIcon::themeName());

      This seems an odd thing to have to do.

      Attachments

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

        Activity

          People

            liaqi Liang Qi
            paulmcauley Paul McAuley
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes