Quote Originally Posted by jpn View Post
QMetaObject::connectSlotsByName() works on OBJECT names, it doesn't know anything about variable names. See QObject::setObjectName(). Anyway, perhaps it would be more straight forward in this case to just establish the connection directly. Auto connections work nicely with UIC produced code, which sets the object names and calls connectSlotsByName() automatically for you....
That's it.

if i add
Qt Code:
  1. CBoxTraitCouleurs->setObjectName("CBoxTraitCouleurs");
To copy to clipboard, switch view to plain text mode 
now it works.

But maybe you are right about making the connect directly.

Thank you very much