Using QString::isEmpty() might be a better check then == ""