replacement of qsize due to it's fails on MacOS
Merge pull request #531 from ifilippov/qsize_fail

replacement of qsize due to it's fails on MacOS