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

Custom icon theme is used correctly by QIcon only if the QApplication has not been constructed

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Invalid
    • Affects Version/s: 5.4.1
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      Kubuntu 15.04

      Description

      QIcon::fromTheme appears to be using the default system theme even after calling QIcon::setThemeSearchPaths and QIcon::setThemeName with proper values.

      It has the correct behaviour if everything is done before constructing a QApplication object, otherwise it will not use the correct theme.

      It works fine on Qt 4.8 but not on Qt 5.4.1, haven't tried other versions beside these.

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              liaqi Liang Qi
              Reporter:
              MattBas Mattia Basaglia
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes