【QtCreator报错】error: undefined reference to `vtable for MyTreeWidget‘

E:\workspace\TreeWidgetDemo\main.cpp:11: error: undefined reference to `vtable for MyTreeWidget'

去掉MyTreeWidget中的

Q_OBJECT

你可能感兴趣的:(Qt)