In my custom widget, there are seven labels included as child widgets. Their texts and text formats should be set by user of the parent widget. I created 14 slots to accomplish this:
void setCenterText(const QString &text) {
ui->labelCenter->setText(text);
}
void setRightText(const QString &text);
...
Can it be done via something like: connect(parent, slot(a), child, slot(b)) and a signal connected to the parent slot is automatically forwarded to the child widget?