Seite 1 von 1

Signal Slot funktioniert genau bei einer Funktion nicht

Verfasst: 14. Januar 2009 14:34
von pospiech
folgender Code wird überhaupt nicht anerkannt:

Code: Alles auswählen

connect(tableWidgetVariation, SIGNAL(currentCellChanged(int, int, int, int)), this, SLOT(OnTableWidgetVariationCellChanged(int currentRow, int currentColumn, int previousRow, int previousColumn)));

Code: Alles auswählen

void widgetCouplerVariationList::OnTableWidgetVariationCellChanged(int currentRow, int currentColumn, int previousRow, int previousColumn)
{
	if (currentColumn != previousColumn)
	{
..
	}
}
Object::connect: No such slot widgetCouplerVariationList::OnTableWidgetVariation
CellChanged(int currentRow,int currentColumn,int previousRow,int previousColumn)

Object::connect: (sender name: 'tableWidgetVariation')
Object::connect: (receiver name: 'widgetCouplerVariationList')
Ich sehe den Fehler nicht.

Verfasst: 14. Januar 2009 14:38
von Christian81
Dafür gibts aber ne Foren-Suche die das Problem bestimmt zehnmal findet - Definition im connect() ist falsch.

Verfasst: 14. Januar 2009 14:49
von pospiech
Christian81 hat geschrieben:Dafür gibts aber ne Foren-Suche die das Problem bestimmt zehnmal findet - Definition im connect() ist falsch.
Danke trotzdem. Warum es falsch ist ist mir schon klar, aber ich war einfach kurzweilig zu blind...