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

QTextDocument::drawContents ignores horizontal alignment in custom delegate

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • P3: Somewhat important
    • None
    • 4.6.0, 4.7.4
    • GUI: Text handling
    • None
    • Windows XP SP3, Qt 4.6.0, Qt 4.7.4, MinGW with GCC 4.4.0

    Description

      The horizontal alignment is ignored when custom delegate draws HTML content by QTextDocument::drawContents() function. Hovever, QTextEdit draws it right.

      Also, to draw HTML contents, I tried to use QAbstractTextDocumentLayout, but nothing has changed.

      In the attachment you will find example project and bug screenshots.

      Attachments

        1. AlignBug1.PNG
          AlignBug1.PNG
          13 kB
        2. AlignBug2.PNG
          AlignBug2.PNG
          19 kB
        3. delegate.zip
          0.6 kB
        4. QTextDocumentTest.tar.gz
          33 kB
        5. TableTemplate2.zip
          0.6 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            graninas Alexander Granin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes