chip_definition/Isrc/NLBChipDefinitionEditor.C:20: error: no matching function for call to `nlb::gui::chip_definition::ChipDefinitionEditor::connect(QAction*, const char*, nlb::gui::chip_definition::ChipDefinitionEditor* const, const char*)'
我从代码中得到这个错误:
qDebug() << dynamic_cast<QObject*>(this);
connect(m_engine->actionRegister().actionAt(nlb::gui::base::ACTION_ID_CONTEXT_REMOVE_CHIP), SIGNAL(triggered(bool)), this, SLOT(onRemoveSelectedChips()));
错误状态this(ChipDefinitionEditor*)
不是QObject*
,但在评论dynamic_cast
时会转换为 ok 。当然是来源于。这怎么可能发生?connect
ChipDefinitionEditor
QObject