[solved]How to check absence of icon in the resources
I have problem with checking icon from resource. Code for example:
QIcon myIcon( ":/wrong/path/to/icon" )
myIcon.isNull() // return false but there is no icon
How can I checked that icon is present in resources?
bq. "bool QIcon::isNull() const":http://qt-project.org/doc/qt-5.0/qicon.html#isNull
Returns true if the icon is empty; otherwise returns false.
An icon is empty if it has neither a pixmap nor a filename.
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.
Use QFile::exists() instead.
Thanx QFile::exists() is what I need.