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

QFont::setLetterSpacing() parameter 'spacing' units are not documented

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • 5.4.0 RC
    • 5.3.1
    • Documentation
    • None
    • Change-Id: I18168dfa503feac07ee1b7bc349b9f14b7351518

      http://qt-project.org/doc/qt-5/qfont.html#setLetterSpacing

      void QFont::setLetterSpacing(SpacingType type, qreal spacing)

      The units for the 'spacing' parameter are not documented at all. Most probably it is pixels, since the parameter is converted to 'int' in the qfont.cpp. At the moment there's only said that "The spacing between the letters can be made smaller as well as larger."

      Make the documentation clearer in this respect and add the units to 'spacing' parameter to avoid confusion.

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

            leenam Leena Miettinen
            qtcomsupport Qt Support
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes