12bool isEmptyFolder(QString path) { return QDir(path).entryList(QDir::NoDotAndDotDot|QDir::AllEntries).count() == 0;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
2 Responses
it can be simply written like:
bool isEmptyFolder(QString path) {
return QDir(path).entryList(QDir::NoDotAndDotDot|QDir::AllEntries).count() == 0;
}
it can be simply written like:
Write a comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.