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

The QTextBlockFormat returned by QTextDocument::findBlock doesn't contain the correct charFormat for the first block in the document.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P3: Somewhat important
    • Some future release
    • 4.5.3, 4.6.2, 4.6.3, 4.7.1
    • GUI: Text handling
    • None

    Description

      In the attached example, you can see that the charformat doesn't report the correct format for the first block.
      But this problem doesn't happen if the position is not in the first block. Or if you use QTextDocument::find() to get the cursor then get the char format.

      Attachments

        1. textcharformat.tar.gz
          1 kB
          Nokia Qt Support
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            sanonymous Nokia Qt Support (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes