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

Typo in QVariant docs

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4: Low
    • Resolution: Done
    • Affects Version/s: 4.8.x, 5.0.1
    • Fix Version/s: 5.1.0
    • Component/s: Documentation
    • Labels:
      None
    • Commits:
      7a988e4c0d1d288b0a4793a9fea6a5e6912e9584

      Description

      http://qt-project.org/doc/qt-4.8/qvariant says:
      "For example, canConvert() would return true when called on a variant containing a string because, in principle, QVariant is able to convert strings of numbers to integers"

      Please replace canConvert() with canConvert(Int).

      I already created issue for this typo ( https://bugreports.qt-project.org/browse/QTBUG-28053 ), but this issue was occasionally closed without fixing, so I have to create it again and add more arguments:

      1. Of course, this sentence is illogical and cause misunderstanding. Of course, author of this text mean "canConvert(Int)". If you don't see this, read the sentence in the docs again and again.

      2. One cannot write canConvert(). This will cause compilation error. canConvert() needs normal argument or template argument. So, one should write canConvert<int>() or canCovert(Int). But I think canConvert(Int) is preferable.

        Attachments

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

          Activity

            People

            Assignee:
            veshivas Venugopal Shivashankar
            Reporter:
            safinaskar Askar Safin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes