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

6.2: The basic QFont constructor deprecated?

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 6.2.0 RC
    • 6.2.0 Beta2
    • GUI: Font handling
    • None
    • 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

            andysh Andy Shaw
            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