if(line == wordEdit->text())
{
qDebug() << "ok";
}
qDebug() << "bad";
if(line == wordEdit->text())
{
qDebug() << "ok";
}
qDebug() << "bad";
To copy to clipboard, switch view to plain text mode
Maybe better would be:
f(line == wordEdit->text()){
qDebug() << "ok";
} else{
qDebug() << "bad: " << line << ";" << wordEdit->text() << ";";
}
f(line == wordEdit->text()){
qDebug() << "ok";
} else{
qDebug() << "bad: " << line << ";" << wordEdit->text() << ";";
}
To copy to clipboard, switch view to plain text mode
This way you know why its "bad" (and dont print "bad" after its "ok"
).
Bookmarks