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

Typo in QVariant docs

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P4: Low
    • 5.1.0
    • 4.8.x, 5.0.1
    • Documentation
    • None
    • 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

        For Gerrit Dashboard: QTBUG-28204
        # Subject Branch Project Status CR V

        Activity

          People

            veshivas Venugopal Shivashankar
            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