I\'ve written an application for an embedded linux project, and I want my application to display a particular menu when the user inserts a USB drive. I\'m programming the a
The section "libudev - Monitoring Interface" of this document http://www.signal11.us/oss/udev/
should get you started.
Instead of a while(1) loop and a sleep, just make a function with that stuff and then set up a periodic Qt timer to call it every half second or whatever.