Hi,
I am wondering if anyone can give me some pointers or examples on how to pass
argument(s) from WPushButton to the Slot.
In the following example, I created a WPushButton and tried to connect it with
a SLOT and calls the function addForm(). But I wasn't able
to figure out I can pass an object of WTreeTableNode along with it.
WPushButton *addFormButton = new WPushButton(L"Add Form", this);
addFormButton->clicked.connect(SLOT(this, TreeList::addForm));
void TreeList::addForm(WTreeTableNode *parent)
{
// ADD FORM TO PARENT
std::cout << std::endl << parent->id();
WTreeTableNode *node = makeTreeForm(L"Form " +
boost::lexical_cast<std::wstring>(++formCount), parent);
parent->addChildNode(node);
addWidget(node);
}
Any helps would be appreicated.
Jimmy
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest