Opened 10 years ago

Closed 5 years ago

#297 closed defect (wontfix)

icon corruption

Reported by: KO Myung-Hun Owned by:
Priority: major Milestone:
Component: General Version: 4.7.3
Severity: low Keywords:
Cc:

Description

Hi/2.

If some icons, maybe 24-bits or 32-bits icons are used, a default icon of a program is corrupted. That is, an icon of a program listed in a folder on WPS is corrupted.

I investigated this problem, and found the causes. They were compressions. Compression is done by two steps in linking stage. One is QMAKE_RUN_RC2EXE, the other is QMAKE_EXEPACK.

If removing -x2 from QMAKE_RUN_RC2EXE and exepack from CONFIG, the problem has gone.

However, without lxlite, the size of .exe and/or .dll is much bigger. So swapping the order of QMAKE_RUN_RC2EXE and exepack is helpful. That is, compress .exe and/or .dll with lxlite, then embed .res to .exe and/or .dll without compression.

Although a whole size is a little bigger, but when porting Windows programs, icons will not be corrupted.

Change History (3)

comment:1 by Silvan Scherrer, 6 years ago

Milestone: Qt EnhancedQt 5

comment:2 by Silvan Scherrer, 5 years ago

Milestone: Qt 5

Ticket retargeted after milestone closed

comment:3 by Silvan Scherrer, 5 years ago

Resolution: wontfix
Status: newclosed

please retest with Qt 5. I guess it's still the same, but we need a new testcase. And open a ticket at https://github.com/bitwiseworks/qtbase-os2 if it's still wrong.

Note: See TracTickets for help on using tickets.