Alexander Semke Alexander.Semke at web.de
Sun May 24 09:19:38 BST 2015

Hi Jeremy,

> I'm confused about how QIcon::fromTheme works (or maybe how it's
> supposed to work?) I've got Kmouth frameworks branch built and
> installed into /usr/local on two different machines. In both cases it
> installs phrase.png and phrasebook.png icons into
> /usr/local/share/icons/hicolor/XxY/actions and XDG_DATA_DIRS is set so
> QIcon::themeSearchPaths is giving /usr/local/share as one of the paths
> it is searching. Yet QIcon::fromTheme(QLatin1String("phrase")) gives
> no icon unless I copy the icon from
> /usr/local/share/icons/hicolor/32x32/actions/ to
> /usr/share/icons/hicolor/32x32/actions. 
I had a similar problem with pathes in LabPlot couple of month ago and I ended 
up specifying -DCMAKE_INSTALL_PREFIX=/usr for cmake when building the code 
localy. The result of my investigation then was - it wasn't designed to work 
like you (and me) expect it to work.


More information about the kde-core-devel mailing list