how to compare the last three characters of QSTring is png
Solved
General and Desktop
-
how to compare the last three characters of QSTring is png
-
Don't use
QString
but QFileInfo for this. There's the corresponding API to work with file extensions. -
but we if have to incliue a extra header file , will no increase the executable size
-
@Qt-Enthusiast
if you insist on it, there are still the standart QString functions
splitRef
&rightRef
and char wise comparing. -
@Qt-Enthusiast said in how to compare the last three characters of QSTring is png:
but we if have to incliue a extra header file , will no increase the executable size
How do you figure this? There's no relation between headers of non-template classes (except for the ones containing inline functions) and binary size.