I am getting a "No such signal error" when using QSignalMapper under Linux

313 Views Asked by At
No such signal QSignalMapper::mappedString(QString)` is the exact error

I am working on an effect engine plugin for OpenRGB but I have run into some issues with Linux

QCheckBox* SelectedBox = new QCheckBox();
QSignalMapper* DeviceSelectionMapper = new QSignalMapper(SelectedBox);
DeviceSelectionMapper->setMapping(SelectedBox, "DeviceName");

connect(SelectedBox,SIGNAL(clicked()),DeviceSelectionMapper,SLOT(map()));
connect(DeviceSelectionMapper,SIGNAL(mappedString(QString)),this,SLOT( DeviceSelectionChanged(QString)));

DeviceSelectionChanged is under private slots:

Also to be clear this does work under Windows (I am trying to do this on WSL by the way,)

0

There are 0 best solutions below