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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 6.2.0 Beta1
    • GUI: Font handling
    • None

      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.

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

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

              Created:
              Updated:

                There are no open Gerrit changes