I'm parsing a QString looking for the bar(|) char but I get the error "call of overloaded `QChar(const char[2])' is ambiguous" if i do this:

QChar cha("|");
if(shapeText.at(i) == cha) {

or

if(shapeText.at(i) == "|") {

How would one compare that char against a QChar?