Hello,

Qt5 - compiles and works fine.

Qt6 - can't even compile. Windows, MSVC2019.

Code:

*a.h*:

classA:publicQObject

{

Q_OBJECT

public:

explicitA(QObject*parent=nullptr);

signals:

voidtest1(constQSharedPointer<constC>&o);//OK

voidtest2(constQSharedPointer<constB>&o);//CompileerrorunderQt6

};

*b.h*:

classB:publicQObject

{

Q_OBJECT

public:

explicitB(QObject*parent=nullptr);

};

*c.h*:

classC

{

public:

C();

};

_______________________________________________
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest

Reply via email to