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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.2.0 Beta1
    • GUI: Font handling
    • 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

              esabraha Eskil Abrahamsen Blomfeldt
              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