PDA

View Full Version : Comparing the |(shift+\) char



warry
8th September 2008, 00:48
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?

warry
8th September 2008, 07:05
Nevermind this