Bug 364807 - KWrite does not sport its icon.
Summary: KWrite does not sport its icon.
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: kwrite (show other bugs)
Version: 16.04
Platform: Other Linux
: NOR minor
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-06-27 10:53 UTC by Baltasar
Modified: 2016-09-16 15:45 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Baltasar 2016-06-27 10:53:25 UTC
I'm using Lubuntu 16.04, in a x64 machine.
The icon appears in the menu launcher (not initially, after installing kate5-data), but not in the program itself.


Reproducible: Always

Steps to Reproduce:
1. Just open Kwrite, the icon appearing in the window title bar is the default blank window of Qt.


Actual Results:  
There is a default icon instead of the app's icon.

Expected Results:  
The app's icon appearing in the window border.

There is no workaround a know of, but it is just a stetic problem.
Comment 1 Christoph Cullmann 2016-09-06 09:18:25 UTC
This seems to be fixed in 16.08.
Comment 2 RJVB 2016-09-16 15:45:02 UTC
FWIW, the correct cross-platform way of getting the icon to show up in task switchers, Docks etc. is something along the lines of

app.setWindowIcon(QIcon::fromTheme("appIconName", app.windowIcon()));

this avoids replacing the application icon (resource) installed in or with the application with an empty icon; as a general rule of thumb one can say that platforms either store the app icon resource with the app (OS X, MS Windows) or else they use an icon from a user-selectable icon theme from some central location.