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.
Output is: true 1Qt Code:
bool bVal = (bool) 200; int nVal = bVal; qDebug() << bVal << nVal;To copy to clipboard, switch view to plain text mode





Reply With Quote
Bookmarks