Opened 5 years ago

Closed 6 weeks ago

#297 closed defect (wontfix)

icon corruption

Reported by: komh 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 Changed 14 months ago by diver

  • Milestone changed from Qt Enhanced to Qt 5

comment:2 Changed 6 weeks ago by diver

  • Milestone Qt 5 deleted

Ticket retargeted after milestone closed

comment:3 Changed 6 weeks ago by diver

  • Resolution set to wontfix
  • Status changed from new to closed

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.