c++ qt QObject:: connect: No such slot -
i have defined slot this:
void choixpoints:: prendpixel1(pixel depart) { //... }
and want execute following sentence:
pixel depart= picmou->define(); //definition of pixel, defined connect(chp3, signal(clicked()), this, slot(prendpixel1(pixel depart)));
however when execute obtain:
qobject::connect: no such slot choixpoints::prendpixel1(pixel depart)
why doesn't slot work?
i think problem in slot definition put variable name "depart" in, not correct. slot , signal definitions must have function name , types. so:
connect(chp3, signal(clicked()), this, slot(prendpixel1(pixel)));
btw think space sensitive, slot(anotherfn(pixel, pixel))
wrong.
hth,ruth
Comments
Post a Comment