I use QFilewatcher to monitor GPIO pins on a Raspberry Pi. This works great when I start the program from QTCreator.

If I run the compiled program as nonroot on the Raspberry Pi the monitoring does not work; other (normal) access to the GPIO pins is possible without problems.

After having started any other program once per sudo, monitoring with the Qt program runs -nonroot started- without any problems. It can be started any number of times, until a Raspi reboot the monitoring works perfectly every time.

Does anyone have an idea about this behavior, does QFilewatcher need a service that is started randomly with root login?