QFileDialog does not work with tags in OSX and Qt 5.7

I need fileDialogto work with tags correctly. In OSX, when I try to click on a tag, this code deletes all the files from the file dialog, so I cannot select them.

Looks like I found a solution Option::DontResolveSymlinks, but it doesn't work either.

Update: if the filter "Any (\*.\*)"shows folders, in other cases it is not. As well as disabling the files that you need to select - I already came up with a workaround, but I hope there is a solution.

QStringList filenames = QFileDialog::getOpenFileNames(nullptr, 
                                                      caption,
                                                      lastDirPath,
                                                      filter,
                                                      nullptr,
                                                      QFileDialog::Option::DontResolveSymlinks);

Refresh: Added screen to describe what a tag is. tag example

+4
source share
1 answer

Mac, .

QStringList filenames = QFileDialog::getOpenFileNames(nullptr, 
                                                      caption,
                                                      lastDirPath,
                                                      filter,
                                                      nullptr,
                                                      QFileDialog::Option::DontUseNativeDialog)

, UNIX, .

0

Source: https://habr.com/ru/post/1655976/


All Articles