[Interest] QFile and file shortcuts on Windows.

Crocker, William William.Crocker at analog.com
Fri Sep 24 17:00:38 CEST 2021


Hello:

My app uses Qfile:

QFile in_file(file_to_read);
if( in_file.open(QIODevice::ReadOnly|QIODevice::Text) ) {
    ...

On windows this fails (for me) for files which are actually Windows shortcuts to the real file.
Is that a bug or am I supposed to the provide special code for shortcut detection and processing.
I am using Qt 5.9.1 (forgive me).

Thanks.

***
Bill

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20210924/fca2c18f/attachment.html>


More information about the Interest mailing list