[Qt-interest] emit not triggering connected slot?

Thomas Fjellstrom tfjellstrom at shaw.ca
Sun Jun 26 21:26:36 CEST 2011


I have a problem with a program I'm working on. I've connected to a signal 
that is definitely being emitted (logs before and after the emit are printed), 
and Qt isn't complaining about the connect, so I assume it's connected 
properly (I am linked against a debug Qt lib).

I've got the following slot in my class:

void documentUrlChanged(KTextEditor::Document *);

and the following connect statement:

connect(doc, SIGNAL(documentUrlChanged(KTextEditor::Document*)), this, 
SLOT(documentUrlChanged(KTextEditor::Document*)));

and "doc"'s superclass has the following signal:

void documentUrlChanged ( KTextEditor::Document *document );

I've also tried adding it as a signal in "doc"s class as well, but that hasn't 
helped.

What can cause this behavior?

-- 
Thomas Fjellstrom
tfjellstrom at shaw.ca



More information about the Qt-interest-old mailing list