Don't rely on implicit QScopedPointer to bool conversion
No longer available in Qt6.
-
Developer
Note that the explicit bool operator() only affects assignments to bool values, passing as bool arguments or converting to bool return values, not the use in conditions. Ie.
if (foo)
still works, onlybool x = foo;
doesn't. -
Author Developer
ok . Thanks for info
Please register or sign in to comment