QMetaTypeConstructHelper is not a template function while i upgrade qt to qt5



  • Hi ,
    Actually i have a old code in qt4. In qt5 , it says
    error: 'qMetaTypeConstructHelper' is not a template function
    inline void *qMetaTypeConstructHelper(const NetFwPublicTypeLib::INetFwRemoteAdminSettings *t)

    The code is : ^
    @
    template<>
    inline void *qMetaTypeConstructHelper(const NetFwPublicTypeLib::INetFwRemoteAdminSettings *t)
    { Q_ASSERT(!t); return new NetFwPublicTypeLib::INetFwRemoteAdminSettings; }
    @

    Could you please suggest me what to do , i am just starting QT .


  • Lifetime Qt Champion

    Hi,

    Did you do a full rebuild of your code ?

    From what file did you get that error ?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.