[SOLVED]Migrating for Qt4 to Qt5 gives me error:invalid application of 'sizeof' to incomplete type 'QStaticAssertFailure<false>'
-
I was working on QT 4.8.1 .The Qled was working fine . I migrated to QT 5.5(qt-opensource-windows-x86-mingw492-5.5.0) But the code throws me error.
C:\Qt\Qt5.5.0\5.5\mingw492_32\include\QtCore\qglobal.h:703: error: invalid application of 'sizeof' to incomplete type 'QStaticAssertFailure<false>' enum {Q_STATIC_ASSERT_PRIVATE_JOIN(q_static_assert_result, __COUNTER__) = sizeof(QStaticAssertFailure<!!(Condition)>)}
I went through porting guide but did not help me. I found similar error in Qt Forum and Stackoverflow but still unaware of solution.
Does anyone came across this error ? is there something to do with Q_OBJECT macro ?
I tried removing it still same error. Can anyone suggest me to solve my problem? -
Hi,
The clean thing to do: update the plugin to follow the new convention that doesn't use the
Q_EXPORT_PLUGIN2
The link showing how to do it in the wiki has been updated