You are comparing pointers instead of the objects itself, try:
Qt Code:
  1. if (*one == *two)
  2. ...
To copy to clipboard, switch view to plain text mode