Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to detect a USB connection in linux/Qt

Tags:

linux

qt

usb

i am extremely new to both qt and linux , can u please tell me a way how to detect a usb device connection and disconnection using qt in linux platform .

any help , doccuments, urls/sites where i can get the basic information (in detail would be even better) is appriciated.

please help

thanks in advance,

SAMBEET KUMAR

like image 323
SAMBEET KUMAR Avatar asked Nov 14 '22 12:11

SAMBEET KUMAR


1 Answers

If you have a version available on your platform (most Linux platforms do), you can look into using DBus for notifications of things like that, and Qt has DBus support built-in via a variety of classes.

like image 76
Caleb Huitt - cjhuitt Avatar answered Dec 24 '22 03:12

Caleb Huitt - cjhuitt