Since Qt 6.12, the permissions \a perm can be specified when calling.
When it is not passed, the permissions of the original are copied.
The new file shall be created with the given permissions.

If the copied file is a symbolic link (symlink), the file it refers to
is copied, not the link itself.
With the exception of permissions, no other file metadata is copied.

Returns \c true if successful; otherwise returns \c false.

Note that if a file with the name \a newName already exists,
copy() returns \c false. This means QFile will not overwrite it.
However, the operation is not atomic. There is a chance that another
process creates a file with \a newName between the check and the copy.
In such case the file will be overwritten.

\note On Android, this operation is not yet supported for \c content
scheme URIs.
