﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
306	PNG-format application icon renders badly	Alex Taylor		"It's common to use an image (e.g. from Qt resources) of an internally-supported format such as PNG for the frame icon.  Indeed, this seems to be the only way to be able to access the image in other contexts within the application (see ticket #305).

Unfortunately, it renders very badly in this case, with ugly scaling and broken alpha-blending.

In theory, it should be possible to avoid scaling by providing an icon of the exact size.  For example:
{{{
QIcon icon;
icon.addFile("":/images/editor.png"", QSize( 40, 40 ), QIcon::Normal, QIcon::On );
icon.addFile("":/images/editor_mini.png"", QSize( 20, 20 ), QIcon::Normal, QIcon::On );
icon.addFile("":/images/editor_vga.png"", QSize( 32, 32 ), QIcon::Normal, QIcon::On );
icon.addFile("":/images/editor_vga_mini.png"", QSize( 16, 16 ), QIcon::Normal, QIcon::On );
setWindowIcon( icon );
}}}

This works (and looks) fine when rendering the image in an explicit context inside the program, such as via `MessageBox::about()`.  

However, when used as the application icon, either the wrong image size is being selected, or it's being re-scaled somehow (why or to what, I cannot tell).

Screenshots to be attached."	defect	closed	minor	Qt 5	QtGui	4.7.3	low	wontfix		
