Guest User

Untitled

a guest
Apr 24th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. for (int path = 1; path < argc; path++) {
  2. QFileInfo fi(argv[path]);
  3. if (fi.isDir()) {
  4. QDir dir(argv[path], "", QDir::LocaleAware, QDir::AllEntries);
  5. qDebug() << dir.entryList();
  6. QDirIterator it(QString(argv[path]), QDirIterator::Subdirectories);
  7. while (it.hasNext()) {
  8. it.next();
  9. qDebug() << it.fileInfo().absoluteFilePath();
  10. /* Processing; irrelevant in the context of the question */
  11. }
  12. }
  13. }
  14.  
  15. QApplication app(argc, argv);
  16.  
  17. QStringList args = app.arguments();
  18.  
  19. for(...)
  20.  
  21. const QString dirName = QString::fromLocal8Bit( argv[path] );
Add Comment
Please, Sign In to add comment