[Qt-interest] Signal Slot not working
Matthias Pospiech
matthias.pospiech at gmx.de
Sun Jun 20 23:09:30 CEST 2010
I have a dll emitting error messages:
void QMicosPolluxController::Error(const char * errorMessage)
{
emit errorOccurred(toQString(errorMessage));
}
which is handled in the gui (using the dll)
void DialogMicosController::connectSignalSlots()
{
connect(controller, SIGNAL(errorOccurred(QString)), this,
SLOT(OnControllerError()));
}
void DialogMicosController::OnControllerError(QString error)
{
ui->labelError->setText(error);
}
However the function OnControllerError is never called.
If I copy all classes to the gui project (thus no dll), the effect is
exactly the same.
The SLOT is never called.
Matthias
More information about the Qt-interest-old
mailing list