QList as a function parameter - Linking Error - LNK2019
- by user2445136
I have an issue with QList as a function parameter and I'll be glad if you can assist me.
I have this code for example:
void SpinBoxList_Enable(QList spinBoxList)
{
foreach(QWidget mWidget,*spinBoxList)
mWidget-setEnabled(false);
}
and in the implemantation file I use the QList variable as a pointer:
SpinBoxList_Enable(&controlBoardSpinBoxList);
( controlBoardSpinBoxList is a variable of QList ).
The Function ToggleBoards_Slot(bool) is a slot that uses
When I compile, I get this error message:
1cmosaixserialnumber.obj : error LNK2019: unresolved external symbol "private: void __cdecl CMosaixSerialNumber::SpinBoxList_Disable(class QList *)" (?SpinBoxList_Disable@CMosaixSerialNumber@@AEAAXPEAV?$QList@PEAVQWidget@@@@@Z) referenced in function "public: void __cdecl CMosaixSerialNumber::ToggleBoards_Slot(bool)" (?ToggleBoards_Slot@CMosaixSerialNumber@@QEAAX_N@Z)
1cmosaixserialnumber.obj : error LNK2019: unresolved external symbol "private: void __cdecl CMosaixSerialNumber::SpinBoxList_Enable(class QList *)" (?SpinBoxList_Enable@CMosaixSerialNumber@@AEAAXPEAV?$QList@PEAVQWidget@@@@@Z) referenced in function "private: void __cdecl CMosaixSerialNumber::on_ControlBoardCheckBox_StateChanged(int)" (?on_ControlBoardCheckBox_StateChanged@CMosaixSerialNumber@@AEAAXH@Z)
How can I fix this ?
Thanks,
EVH671