I wrote a char device driver and am now writing a QT \"wrapper\" which part of it is to get a signal to fire when the device becomes readable via the poll mechanism. I had
Your QSocketNotifer gets destroyed as soon as that if block ends. It doesn't stand a chance of reporting anything.
You must keep that socket notifier alive as long as you want that file to be monitored. The simplest way of doing that is probably keeping a QSocketNotifer* member in one of your classes.