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

QTextOption drops Qt::AlignBaseline flag

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • None
    • 5.11, 5.12.0
    • GUI: Font handling
    • None
    • I believe it affects all environments.
    • Linux/X11
    • 5a03dfa249a270fed2c73b6d6a64a79e80eda583 (qt/qtbase/dev)

    Description

      the alignment is stored in a 8-bit wide bit field in QTextOption but Qt::AlignBaseline = 0x100, hence that flag is dropped.

      I don't understand why the vertical alignment flags start with 0x20 rather than 0x10. Is that because of legacy?

      see https://stackoverflow.com/q/55296327/4248972 for code examples.

      Possibly related: https://bugreports.qt.io/browse/QTBUG-28538

      Attachments

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

        Activity

          People

            chehrlic Christian Ehrlicher
            ovoovo Pascal Bies
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes