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

add alignment properties to QTextItem

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • 4.8.0
    • GUI: Painting, SVG Support
    • None

    Description

      I propose to include horizontal and vertical alignment properties in QTextItem, so that a QPainterEngine can be told to draw the given text with the given alignment relative to the given position.

      The reason for my desire to have this feature is that I am using the QSvgGenerator to draw my QGraphicsScene into an svg file. In a second step I am using Inkscape to export this svg file into a latex compatible pdf-file, in which the text contents are replaced by the according LaTex Symbols. As during this replacement the width of the displayed text is very likely to change (especially for formulas) the text afterwards is no longer optimally displayed. As svg supports to align text item relative to a text-anchor, it would be very helpful to be able to use this feature when exporint from a QGraphicsScene.

      Attachments

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

        Activity

          People

            rodal Samuel Rødal
            suboptimist Timo Nachstedt
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes