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

QQC2 TextEditor example uses deprecated API

XMLWordPrintable

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

      {{
      /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.

        For Gerrit Dashboard: QTBUG-96092
        # Subject Branch Project Status CR V

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

              Created:
              Updated:
              Resolved:

                There is 1 open Gerrit change