Qt: Connecting signals and slots
问题 I have a MainWindow that contains a custom widget with a QTextEdit in it. I would like to create a signal/slot between the MainWindow and the QTextEdit . In MainWindow I have: QObject::connect(ui->Header, SIGNAL(ui->Header->getTextWidget()->textChanged()), this, // this : MainWindow SLOT(headerUpdated())); // Function of MainWindow But this does not work. Is it even possible to create such signal/slot combination? 回答1: why bother - let Qt do all the magic :) Just name your slot (in the