我想使用類似如何在多維數組中正確使用qRegisterMetaType?
typedef double Matrix[4][4];
代表轉換,並且還與QT信號/槽機制,通過他們周圍。但是當我使用
Q_DECLARE_METATYPE(Matrix)
它在這個函數
void *qMetaTypeConstructHelper(const T *t)
{
if (!t)
return new T();
return new T(*static_cast<const T*>(t));
}
拋出qmetatype.h一個錯誤說: 「錯誤C2075: '目標的operator new()的':數組初始化需要大括號」