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

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: P2: Important P2: Important
    • None
    • 5.4.1
    • None
    • Kubuntu 15.04

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes