Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

did you build your opencv libs with Qt support ? (else it is not supported at all)

did you build your opencv libs with Qt support ? (else it is not supported at all)

the signature of your callback function should be:

void callback( int state, void*userData) {
        // do something
}

then add it to the button:

createButton("button6",callback, NULL, CV_PUSH_BUTTON,1);

did you build your opencv libs with Qt support support ? (else it is not supported at all)

the signature of your callback function should be:

void callback( int state, void*userData) {
        // do something
}

then add it to the button:

createButton("button6",callback, NULL, CV_PUSH_BUTTON,1);

did you build your opencv libs with Qt support ? (else it is not supported at all)

the signature of your callback function should be:

void callback( int callback(int state, void*userData) {
     // do something
}

then add it to the button:

createButton("button6",callback, NULL, CV_PUSH_BUTTON,1);