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

    • Bug
    • Resolution: Invalid
    • P2: Important
    • None
    • 5.4.1
    • None
    • 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

              liaqi Liang Qi
              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