amiref
amiref

Reputation: 3431

QDir & QFileInfo Problem

Hi I want to write a program to do this : 1 - give a path from user 2 - store whole of address of files that are in the path in the QStringList 3 - show these files in the command prompt

In fact this program is very similar to dir command : give a path and show address of whole files in that path. I thought this program is very simple but I can't write this program with QDir and QFileInfo. please help me. thanks

Upvotes: 0

Views: 701

Answers (1)

RA.
RA.

Reputation: 7767

Refer to the documentation for QDir::entryList (or alternately, QDir::entryInfoList). These member functions will provide you with the names or QFileInfo objects "for all the files and directories in the directory."

Upvotes: 1

Related Questions