Skip to main content

moregeek program

使用file类创建简单的文件目录检索小工具-多极客编程

File类的常用方法 序号 方法描述 1 public String getName() 返回由此抽象路径名表示的文件或目录的名称。 2 public String getParent()****、 返回此抽象路径名的父路径名的路径名字符串,如果此路径名没有指定父目录,则返回 null。 3 public File getParentFile() 返回此抽象路径名的父路径名

Read More

qt实现文件树-多极客编程

#include <QtCore/QUrl>#include <QtCore/QVariant>#include <QtXmlPatterns/QXmlNamePool>#include "filetree.h"FileTree::FileTree(const QXmlNamePool& pool) : QSimpleXmlNodeModel(pool

Read More