Home:ALL Converter>QObject::connect no matching function

QObject::connect no matching function

Ask Time:2013-06-19T00:40:06         Author:Ashot

Json Formatter

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*)'

Im getting this error from the code:

   qDebug() << dynamic_cast<QObject*>(this);
    connect(m_engine->actionRegister().actionAt(nlb::gui::base::ACTION_ID_CONTEXT_REMOVE_CHIP), SIGNAL(triggered(bool)), this, SLOT(onRemoveSelectedChips()));

Error states that this(ChipDefinitionEditor*) is not QObject* but dynamic_cast casts ok when connect is commented. ChipDefinitionEditor is derived from QObject of course. How could this happen?

Author:Ashot,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/17174391/qobjectconnect-no-matching-function
yy