qstring get if empty

Solutions on MaxInterview for qstring get if empty by the best coders in the world

showing results for - "qstring get if empty"
Hannah
09 Sep 2017
1QString str = "";
2if(str.size() == 0){ //if str is empty or null
3	
4}
5else if(str.isEmpty()){ //if str is empty but not null
6	
7}
8else if(str.isNull()){ //if str is empty and null
9	
10}