I'd use a QSignalMapper.