开发者

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 fi开发者_如何学Pythonles 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


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."

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜