Class 'is not a template type'

前端 未结 7 2005
暗喜
暗喜 2021-01-07 21:54

What does this error mean?

Generic.h:25: error: \'Generic\' is not a template type

Here\'s Generic.

template 

        
7条回答
  •  难免孤独
    2021-01-07 22:34

    Aside from the issue that you are not defining the template class correctly (thus your error message), you cannot use a Q_OBJECT in a template class. See http://doc.trolltech.com/qq/qq15-academic.html for details.

提交回复
热议问题