[gui] `fdopen' and `QFile.open' need the same flags.