Interesting issue with KAboutData and icons

David Faure faure at
Mon Aug 18 07:41:17 UTC 2014

On Monday 04 August 2014 22:01:15 Michael Pyne wrote:
> Hi all,
> I received a bug ( reported
> against KAboutData in KCoreAddons, that setting the window icon doesn't
> actually set the window icon.
> In fact, KAboutData doesn't even try to, except for setting a property to
> the string name of the icon in question.

Well, that dynamic property call is supposed to catch this static property 
from QGuiApplication, provided that qApp is not just a QCoreApplication:

  Q_PROPERTY(QIcon windowIcon READ windowIcon WRITE setWindowIcon)

I made this stuff work in qtbase f42bd772f8110dba13d209d81d8eed0077772185,
which is in Qt 5.3.0.

So it's known that it won't work with older versions of Qt.

I didn't test it via KAboutData though.

David Faure, faure at,
Working on KDE Frameworks 5

More information about the Kde-frameworks-devel mailing list