assume,I have
connect(obj1,SIGNAL(changestatus(int),obj2,SLOT(ge tdata()));
how I get int value in signal from getdata function?
assume,I have
connect(obj1,SIGNAL(changestatus(int),obj2,SLOT(ge tdata()));
how I get int value in signal from getdata function?
Use a slot that has an int parameter, something like:
Read more hereQt Code:
void CLASSNAME::getData(int inValue){ //use the value } //to connect use: connect(obj1,SIGNAL(changestatus(int),obj2,SLOT(getdata(int))); //you only write the type at the connect statementTo copy to clipboard, switch view to plain text mode
banlinhtienphong (28th April 2011)
Bookmarks