0
No such signal QSignalMapper::mappedString(QString)` is the exact error

我正在为 OpenRGB 开发效果引擎插件,但在 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 在private slots:

另外要明确的是,这在 Windows 下确实有效(顺便说一下,我正在尝试在 WSL 上执行此操作,)

4

0 回答 0