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

qmlcachegen generates code that is incompatible with QT_NO_CAST_FROM_ASCII

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 6.8.1, 6.9.0 FF, 6.9
    • 6.8.0
    • QML: Compiler
    • None
    • 349a18096 (dev), d63c560ec (dev), e6e3da4de (6.8)

    Description

      Building https://invent.kde.org/graphics/spectacle fails with

      /home/nico/kde/build/spectacle/src/.rcc/qmlcache/spectacle_Gui/CopiedMessage_qml.cpp: In lambda function:
      
      /home/nico/kde/build/spectacle/src/.rcc/qmlcache/spectacle_Gui/CopiedMessage_qml.cpp:190:72: error: ‘QString::QString(const char*)’ is private within this context
      
        190 | aotContext->initGetObjectLookup(1, r2_0, QQmlPrivate::compositeMetaType(aotContext->compilationUnit, "AnimatedLoader"));
      
            |                                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      
      In file included from /home/nico/kde/usr/include/QtQml/qjsprimitivevalue.h:10,
      
                       from /home/nico/kde/usr/include/QtQml/qqmlprivate.h:18,
      
                       from /home/nico/kde/build/spectacle/src/.rcc/qmlcache/spectacle_Gui/CopiedMessage_qml.cpp:2: 

      See https://bugs.kde.org/show_bug.cgi?id=494281

      Adding "remove_definitions(-DQT_NO_CAST_FROM_ASCII)" to CMake fixes the issue.

      Attachments

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

        Activity

          People

            qtqmlteam Qt Qml Team User
            nicolasfella_kde Nicolas Fella
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes