Image Writer searches almost any subdirectory of my home directory for the Downloads folder. Sure, this may take some time.
The search should be restricted to only immediate subdirectories by replacting QDirIterator::Subdirectories with QDirIterator::NoIteratorFlags.
Even better would be using the SHGetKnownFolderPath API call:
Image Writer searches almost any subdirectory of my home directory for the Downloads folder. Sure, this may take some time. :Subdirectories with QDirIterator: :NoIteratorFlag s.
The search should be restricted to only immediate subdirectories by replacting QDirIterator:
Even better would be using the SHGetKnownFolde rPath API call:
PWSTR pPath = NULL; rPath( FOLDERID_Downloads, KF_FLAG_NO_ALIAS, 0, &pPath)) ) :fromWCharArray ( pPath );
if (SUCCEEDED( SHGetKnownFolde
{
myHomeDir = QString:
CoTaskMemFree( pPath );
}