Search
 
SCRIPT & CODE EXAMPLE
 

CPP

qstring get if empty

QString str = "";
if(str.size() == 0){ //if str is empty or null
	
}
else if(str.isEmpty()){ //if str is empty but not null
	
}
else if(str.isNull()){ //if str is empty and null
	
}
Comment

PREVIOUS NEXT
Code Example
Cpp :: capacity() in c++ 
Cpp :: c++ remove whitespace from string 
Cpp :: pass c++ 
Cpp :: qstring insert character 
Cpp :: delete specific vector element c++ 
Cpp :: __lg(x) in c++ 
Cpp :: c++ random number generator uniform distribution 
Cpp :: #pragma once in main file what is it for 
Cpp :: Vector2 c++ 
Cpp :: freopen c++ 
Cpp :: how to clear screen in C++ console 
Cpp :: how to get double y dividing 2 integers in c++ 
Cpp :: cpp take lambda as parameter 
Cpp :: c++ main function 
Cpp :: maximum value in map in c++ 
Cpp :: static_cast c++ 
Cpp :: cpp map iterate over keys 
Cpp :: calling struct to a struct c++ 
Cpp :: remove last character from string c++ 
Cpp :: calculator c++ 
Cpp :: latex double subscript 
Cpp :: reverse string c++ 
Cpp :: copy a part of a vector in another in c++ 
Cpp :: two pointer in c++ 
Cpp :: min heap and max heap using priority queue 
Cpp :: sieve of eratosthenes algorithm in c++ 
Cpp :: why are inline keyword in header c++ 
Cpp :: count bits c++ 
Cpp :: update variable in const function C++ 
Cpp :: c++ vector declaration 
ADD CONTENT
Topic
Content
Source link
Name
3+4 =