[Qt-interest] Signal Slot not working
Francisco Gonzalez Morell
gzmorell at gmail.com
Mon Jun 21 01:10:09 CEST 2010
On Domingo 20 Junio 2010 23:09:30 Matthias Pospiech escribió:
> 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()));
Missing QString on SLOT?
> }
> 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
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
More information about the Qt-interest-old
mailing list