Any (*) . Any (*) to allow the user to select any file without restrictions. \.\S{1,4} (a '.' followed by 1 to 4 non white space characters). Since it is common for users to end file names with a dot followed by digits to indicate versions of the file we must ignore suffixes comprising only digits. This means the file name must not match the Qt regexp \.\d{1,4}.