Quote Originally Posted by high_flyer View Post
Your code is not doing what you wanted to do:
Hmm, what did I miss? QObject::disconnect() returns type bool. Through implicit conversion from type bool to type int , true is 1 and false is 0.

Just to make sure it isn't a compiler thing I tested this is VC and gcc.
Qt Code:
  1. bool bVal = (bool) 200;
  2. int nVal = bVal;
  3. qDebug() << bVal << nVal;
To copy to clipboard, switch view to plain text mode 
Output is: true 1