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

FX Material Showroom: Compiler warning

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.9.3, 6.10.0
    • Examples and Demos
    • None

    Description

      Building the FX Material Showroom example results in a compiler warning:

      /Users/kkoehne/dev/qt/dev/src/qtdoc/examples/demos/FX_Material_Showroom/src/main.cpp:19:48: warning: 'operator""_qs' is deprecated: Use _s from Qt::StringLiterals namespace instead. [-Wdeprecated-declarations]
         19 |     const QUrl url(u"qrc:/qt/qml/Main/main.qml"_qs);
            |                                                ^
      /Users/kkoehne/Qt/6.10.0/macos/lib/QtCore.framework/Headers/qstring.h:1782:1: note: 'operator""_qs' has been explicitly marked deprecated here
       1782 | QT_DEPRECATED_VERSION_X_6_8("Use _s from Qt::StringLiterals namespace instead.")
            | ^
      /Users/kkoehne/Qt/6.10.0/macos/lib/QtCore.framework/Headers/qtdeprecationmarkers.h:205:44: note: expanded from macro 'QT_DEPRECATED_VERSION_X_6_8'
        205 | # define QT_DEPRECATED_VERSION_X_6_8(text) QT_DEPRECATED_X(text)
            |                                            ^
      /Users/kkoehne/Qt/6.10.0/macos/lib/QtCore.framework/Headers/qtdeprecationmarkers.h:29:33: note: expanded from macro 'QT_DEPRECATED_X'
         29 | #  define QT_DEPRECATED_X(text) Q_DECL_DEPRECATED_X(text)
            |                                 ^
      /Users/kkoehne/Qt/6.10.0/macos/lib/QtCore.framework/Headers/qcompilerdetection.h:1011:36: note: expanded from macro 'Q_DECL_DEPRECATED_X'
       1011 | #  define Q_DECL_DEPRECATED_X(x) [[deprecated(x)]]
            |                                    ^
      1 warning generated.
      [
      

      Attachments

        Issue Links

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

          Activity

            People

              kkohne Kai Köhne
              kkohne Kai Köhne
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes