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

Document letter-spacing as a property of style sheet

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Fixed
    • Not Evaluated
    • 6.9.0 FF
    • None
    • Documentation
    • None
    • b0b278d45 (dev)

    Description

      QLabel label("Hello");
      label.setStyleSheet("letter-spacing: 10px");
      label.show();
      

      The snippet above is confirmed to work, that "letter-spacing" can adjust spacing between letters. That's probably because letterSpacing is a property of QFont:
      https://doc.qt.io/qt-6/qfont.html#letterSpacing

      But it is not documented anywhere. So it's better to document it, e.g., here:
      https://doc.qt.io/qt-6/stylesheet-reference.html#font

      Attachments

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

        Activity

          People

            docteam Qt Documentation Team
            luqiaochen Luqiao Chen
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes