QString emptyString=QString("");QString someStr=QString("some string");if (someStr.contains(emptyString)==true) /*всегда сюда попадаем!*/;