HIDDevice* HID::device(const QString& path) { QListIterator <HIDDevice*> it(m_devices); while (it.hasNext() == true) { HIDDevice* dev = it.next(); if (dev->path() == path) return dev; } return NULL; }