Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-19475

QList function contains returns QBool instead of bool

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.0.0
    • 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.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            w00t Robin Burchell
            jjmuhone Jussi Muhonen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes