[Interest] Qt6: QShared<const TYPE> is not supported in signals if TYPE is an QObject?

Thiago Macieira thiago.macieira at intel.com
Fri May 20 17:45:35 CEST 2022


On Friday, 20 May 2022 01:54:43 PDT Alexander Dyagilev wrote:
> Qt6 - can't even compile. Windows, MSVC2019.

Please share the error message.

And please use an email client that knows how to paste spaces. Your code is 
unreadable:

> classA:publicQObject
> 
> {
> 
> Q_OBJECT
> 
> public:
> 
> explicitA(QObject*parent=nullptr);
> 
> signals:
> 
> voidtest1(constQSharedPointer<constC>&o);//OK
> 
> voidtest2(constQSharedPointer<constB>&o);//CompileerrorunderQt6
> 
> };

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Cloud Software Architect - Intel DCAI Cloud Engineering





More information about the Interest mailing list