[Qt-interest] why QTemporaryFile::open is not allowing specify flags?

Constantin Makshin cmakshin at gmail.com
Thu Oct 7 07:37:16 CEST 2010


Firstly, temporary files aren't meant to be used/edited by the user.

Secondly, doesn't setTextModeEnabled() solve the problem?

On Thursday 07 October 2010 06:41:38 Malyushytsky, Alex wrote:
> Is there any specific reason to prevent user specify flags in QTemporaryFile::open() (make derived function protected) ?
> Correct me if I am wrong, but I see no way to specify QIODevice::Text flag now, which means my files are not human readable on Windows due to the absence of Windows style line break.
> 
> Isn't it strange I need to override just in order to access inherited functionality?
> 
> Regards,
> 
> Alex Malyushytsky
> 
> Research Engineer - Weidlinger Associates Inc.
> office: 650 230 0210,
> direct: 650 230 0349
> web: http://www.wai.com
> 
> 
> ---------------------------------------------------------------------------------------------------
> Weidlinger Associates, Inc. made the following annotations.
> 
> “This message and any attachments are solely for the intended recipient and may contain confidential or privileged information. If you are not the intended recipient, any disclosure, copying, use, or distribution of the information included in this message and any attachments is prohibited. If you have received this communication in error, please notify us by reply e-mail and immediately and permanently delete this message and any attachments. Thank you.”
> 
> “Please consider our environment before printing this email.”



More information about the Qt-interest-old mailing list