QTemporaryFile: Add a note about behavior on Linux
Mostly copied from the 5.10 changelog file. Task-number: QTBUG-80157 Change-Id: I58654fe998ada603241b9a7cb967f55e66ebc954 Reviewed-by: Christian Ehrlicher <ch.ehrlicher@gmx.de> Reviewed-by: Tomasz Siekierda <sierdzio@gmail.com> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
315c2c468e
commit
c8df1a2c6d
@ -631,6 +631,12 @@ QString QTemporaryFilePrivate::defaultTemplateName()
|
||||
case sensitive. If the template is not present in the filename,
|
||||
QTemporaryFile appends the generated part to the filename given.
|
||||
|
||||
\note On Linux, QTemporaryFile will attempt to create unnamed temporary
|
||||
files. If that succeeds, open() will return true but exists() will be
|
||||
false. If you call fileName() or any function that calls it,
|
||||
QTemporaryFile will give the file a name, so most applications will
|
||||
not see a difference.
|
||||
|
||||
\sa QDir::tempPath(), QFile
|
||||
*/
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user