Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
4.7.1
-
None
-
Qt 4.7.1 and Visual Studio 2005
Description
The documentation (online and sdk provided) says the function QList< T >::contains( const T & value) returns bool but the actual code returns a QBool object. The issue I'm facing is that there isn't a constructor for QVariant with QBool. This leads to fact that I cannot call QSettings().setValue("foo", list.contains(something)) event thought a function with return type of bool should allow implicit constructor for QVariant to be called with a bool parameter.