'On Linux QDir::entrylist() not returning all files and directories for /dev

I know the /dev device files aren't regular files but didn't notice anything in the documentation about that being an issue.

My code simply creates a QDir for /dev and uses the QDir::entrylist() method to display the list of files and directories. It appears to be only printing directories under /dev but no device files.



Solution 1:[1]

Dir::system filter causes the QDir::entrylist() to print system files (i.e., sda1 ...) and so on.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 James Smith