Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [SOLVED]Migrating for Qt4 to Qt5 gives me error:invalid application of 'sizeof' to incomplete type 'QStaticAssertFailure<false>'
Forum Updated to NodeBB v4.3 + New Features

[SOLVED]Migrating for Qt4 to Qt5 gives me error:invalid application of 'sizeof' to incomplete type 'QStaticAssertFailure<false>'

Scheduled Pinned Locked Moved General and Desktop
qt5.5qobject
3 Posts 2 Posters 2.7k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • RatzzR Offline
    RatzzR Offline
    Ratzz
    wrote on last edited by Ratzz
    #1

    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?

    --Alles ist gut.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • RatzzR Offline
        RatzzR Offline
        Ratzz
        wrote on last edited by
        #3

        @SGaist
        Thanks for the reply .
        wiki doc helped me out.

        --Alles ist gut.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved