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

6.2: The basic QFont constructor deprecated?

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: 6.2.0 Beta2
    • Fix Version/s: 6.2.0 RC
    • Component/s: GUI: Font handling
    • Labels:
      None
    • Commits:
      a68e1b96b804e7677b0afd2cd505d99703360cf6 (qt/qtbase/dev) 49c4ad245df0e4e3824578a7956770c7aeb50fea (qt/qtbase/6.2)

      Description

      The most basic use of QFont, indeed the first usage example in QFont doc itself is the constructor taking a family name:

      QFont f("Times", 10);

      Now in https://codereview.qt-project.org/c/qt/qtbase/+/318013 that constructor was marked as "obsolete" (?!), but now after [https://codereview.qt-project.org/c/qt/qtbase/+/354366] it generates deprecation warnings.

      This is a very widely used constructor, there are very many usages in Qt's own docs, examples and autotests - are you really, really sure that deprecation is the best solution?

       

        Attachments

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

          Activity

            People

            Assignee:
            andysh Andy Shaw
            Reporter:
            vgt Eirik Aavitsland
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes