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

QQC2 TextEditor example uses deprecated API

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • P3: Somewhat important
    • 6.2
    • 6.1, 6.2
    • Quick: Controls 2
    • None
    • cba55a2f08b5

    Description

      {{
      /home/craig/Projects/qt5/qtdeclarative/examples/quickcontrols2/texteditor/documenthandler.cpp: In member function ‘void DocumentHandler::setFontFamily(const QString&)’:
      /home/craig/Projects/qt5/qtdeclarative/examples/quickcontrols2/texteditor/documenthandler.cpp:147:32: warning: ‘void QTextCharFormat::setFontFamily(const QString&)’ is deprecated: Use setFontFamilies instead [-Wdeprecated-declarations]
      147 | format.setFontFamily(family);
      }}

      As the example basically mirrors the API, this might require a slightly larger refactoring to use the recommended setFontFamilies.

      Attachments

        Issue Links

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

          Activity

            People

              qt.team.quick.subscriptions Qt Quick and Widgets Team
              fabiankosmale Fabian Kosmale
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There is 1 open Gerrit change