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

DOC BUG QTextCursor incorrectly states charFormat() is format after cursor

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • 4.6.2
    • 4.5.3
    • Documentation
    • None
    • All platforms.
    • 965d0b477c13e2f92866cecb73064c3f0d722714

    Description

      The documentation for QTextCursor::charFormat() correctly states "Returns the format of the character immediately before the cursor position()."

      However, the introduction of the same document directly contradicts this:

      "When we refer to "current character" we mean the character immediately after the cursor position() in the document; ... The format of the current character is returned by charFormat(), "

      The intro needs to be corrected.

      I suspect this is not the only place in this document that has this problem: there is probably a bigger issue of before vs. after cursors that warrants someone looking through the dox in a more methodical way.

      Attachments

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

        Activity

          People

            gbk Martin Smith (Qt)
            lsemprini Louis Semprini
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes