[Interest] Qt API for testing whether a file is "special"

Nikos Chantziaras realnc at gmail.com
Thu Jul 26 04:39:36 CEST 2012

Currently, I use something like this in my code:

   #ifdef Q_OS_WIN32
     use _stat64() and test for "con", "prn", "aux", "nul", etc
     assume POSIX and always use stat()

in order to determine whether a file is special (for example a pipe or 
character device).

I know QFileInfo doesn't offer anything for this, but just in case I 
didn't search long enough: is there a Qt way of doing this?

More information about the Interest mailing list