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

Migration guides do not suggest replacement for QFontMetric::charWidth(const QString &, int)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: 6.2.0 Beta1
    • Fix Version/s: None
    • Component/s: GUI: Font handling
    • Labels:
      None

      Description

      Having code which uses

      int QFontMetrics::charWidth(const QString &text, int pos) const
      https://doc.qt.io/qt-5.15/qfontmetrics-obsolete.html#charWidth

      neither the documentation nor the deprecation warning nor the porting guide at
      https://doc.qt.io/qt-6/gui-changes-qt6.html
      suggest what to do instead.

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              esabraha Eskil Abrahamsen Blomfeldt
              Reporter:
              andreasbuhr Andreas Buhr
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:

                  Gerrit Reviews

                  There are no open Gerrit changes