I want to use a QMap that I have previously created to be used inside a slot. I've tried following this but it still did not work (I think I am just doing something stupid). Here is the code I am using.
Constructor:
QMap <int, QList<int> > tiles;
connect(ui->lineEdit, SIGNAL(editingFinished()), this, SLOT(someSlot()));
Now, whenever I send the signal editingFinished, I want someSlot to check if the value is in the QMap and proceed with the various conditions if it is. Problem is, how do I pass my QMap to a slot? Qt does not seem to allow slots with parameters.