Quote Originally Posted by d_stranz View Post
By the way, do you realize that this is incorrect syntax for OR-ing flags?

Qt Code:
  1. Qt::MatchFlags(Qt::MatchExactly || Qt::MatchWrap)
To copy to clipboard, switch view to plain text mode 

It should be this:

Qt Code:
  1. Qt::MatchFlags(Qt::MatchExactly | Qt::MatchWrap)
To copy to clipboard, switch view to plain text mode 

A simple typo like this could lead to all sorts of unexplained behavior, because the result of the logical OR (||) will probably not be the same as the result of the bitwise OR (|).
Ohh my God!!!! Great mistake
but in this case, the result is the same. The problem was that operator== don't work as I espected