!icon.isNull() doesn't guarantee a valid icon

Authored by mart on Mar 6 2017, 12:48 PM.

Description

!icon.isNull() doesn't guarantee a valid icon

from qicon docs:
Note: Even a non-null icon might not be able to create valid pixmaps,
eg. if the file does not exist or cannot be read.

check on the available sizes instead

Details

Committed
martMar 6 2017, 12:48 PM
Parents
R169:3553ca6d4147: Make DesktopIcon aware of iamgeproviders and embedded ressources
Branches
Unknown
Tags
Unknown