[Qt-interest] FileFilter
Andre Somers
andre at familiesomers.nl
Wed Oct 28 16:13:13 CET 2009
Predrag Manojlovic wrote:
> Hi,
>
> Yes i tried that but that is bad approach. Here is explanation:
>
> If user type name without extension, dialog won't warn for overwrite if
> file with extension exists. He will check if file without extension
> exists. So, if i modify file name after dialog returns by adding
> extension I must check again if file with new name exists and redisplay
> Save dialog again or something.
>
> That looks bad in application and makes people confused. In almost all
> windows systems (Win, X11, osx) is possible to force extension natively
> so i guess such flag is missing here.
>
> Main problem is checking for overwrite.
>
> Any solution for this?
>
> Regards
> Predrag
>
> André Somers wrote:
>
>> Hi,
>>
>> The purpose is at least that you can easily view the other files with the
>> same extension in the folder you want to save to. Seriously, how hard is it
>> to check the returned file name and make sure that it ends on the filtered
>> extension after the dialog returns? I'll tell you: it's a one liner (ok,
>> two, if you like that code layout better).
>>
>> André
>>
>>
Good point. I have no solution for that.
André
More information about the Qt-interest-old
mailing list