c++ - 'QMetaObject::connectSlotsByName: No matching signal for' error when building on Ubuntu QT -
this question has reply here:
qmetaobject::connectslotsbyname: no matching signal 1 replyi realise question has been asked before, though circumstances different , have found none of other answers helpful, new qtcreator.
i trying build project qtcreator, builds fine on osx when building ubuntu error:
qmetaobject::connectslotsbyname: no matching signal on_actionwrite_device_triggered()
the project still builds , partly works, not write external device (the point of program).
can give walkthrough of need do, previous answers have said explicitly connecting things, not gone details how this. tips on searching through project find create prepare (i didn't write original program).
any help appreciated tom
check out this: http://qt-project.org/doc/qt-4.8/qmetaobject.html#connectslotsbyname
the method connectslotsbyname tries connect slots signals using next form:
void on_<object name>_<signal name>(<signal parameters>);
object name , signal name separated underscore. i'm not sure may problem object name (actionwrite_device) contains underscore , hence not clear signal name (it either device_triggered
or triggered
). same holds object name. ambiguity might cause trouble.
c++ qt ubuntu
No comments:
Post a Comment