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

[Regr: 5.15->6.4] Signals with containers using forward declared types don't compile

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • P1: Critical
    • None
    • 6.4.0
    • Core: Other
    • None

    Description

      #include <QObject>
      
      class TestObject;
      using VectorOfTestObjects = std::vector<TestObject>;
      
      class SignalTest : public QObject {    
          Q_OBJECT
      public:
          SignalTest() = default;
      
      signals:    
          void incompleteSignal(const VectorOfTestObjects& c) const;
      };
      

       

      The above header will compile with Qt 5.15 but not on Qt 6.4.

      I know things have changed with the meta object system and moc but not sure if this is now expected behavior or a bug.

      Attachments

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

        Activity

          People

            thiago Thiago Macieira
            tummon Cathal Tummon
            Vladimir Minenko Vladimir Minenko
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes