Bug 364807

Summary: KWrite does not sport its icon.
Product: [Applications] kate Reporter: Baltasar <baltasarq>
Component: kwriteAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: minor CC: cullmann, rjvbertin
Priority: NOR    
Version: 16.04   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:

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.