It is usually easiest to create a wrapper function containing this functionality. In other words:
connect(pushbutton, SIGNAL(clicked()), SLOT(setDateFromCustomObject()));
And then in the same class that calls connect:
void YourClass::setDateFromCustomObject() { dateEdit->setDate(custom_object.getDate()); }
It is possible to associate a time binding with specific arguments and objects using an external library called Qxt . It is not like their documentation is complete or updated, but they provide excellent functionality. I consider this only for advanced users.
source share