亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? qdir.cpp

?? QT 開發環境里面一個很重要的文件
?? CPP
?? 第 1 頁 / 共 5 頁
字號:
    The drives() static function provides a list of root directories for each    device that contains a filing system. On Unix systems this returns a list    containing a single root directory "/"; on Windows the list will usually    contain \c{C:/}, and possibly other drive letters such as \c{D:/}, depending    on the configuration of the user's system.    \section1 Path Manipulation and Strings    Paths containing "." elements that reference the current directory at that    point in the path, ".." elements that reference the parent directory, and    symbolic links can be reduced to a canonical form using the canonicalPath()    function.    Paths can also be simplified by using cleanPath() to remove redundant "/"    and ".." elements.    It is sometimes necessary to be able to show a path in the native    representation for the user's platform. The static toNativeSeparators()    function returns a copy of the specified path in which each directory    separator is replaced by the appropriate separator for the underlying    operating system.    \section1 Examples    Check if a directory exists:    \code        QDir dir("example");        if (!dir.exists())            qWarning("Cannot find the example directory");    \endcode    (We could also use the static convenience function    QFile::exists().)    Traversing directories and reading a file:    \code        QDir dir = QDir::root();                 // "/"        if (!dir.cd("tmp")) {                    // "/tmp"            qWarning("Cannot find the \"/tmp\" directory");        } else {            QFile file(dir.filePath("ex1.txt")); // "/tmp/ex1.txt"            if (!file.open(QIODevice::ReadWrite))                qWarning("Cannot create the file %s", file.name());        }    \endcode    A program that lists all the files in the current directory    (excluding symbolic links), sorted by size, smallest first:    \quotefromfile snippets/qdir-listfiles/main.cpp    \printuntil /^\}/    \sa QFileInfo, QFile, QFileDialog, QApplication::applicationDirPath(), {Find Files Example}*//*!    Constructs a QDir pointing to the given directory \a path. If path    is empty the program's working directory, ("."), is used.    \sa currentPath()*/QDir::QDir(const QString &path) : d_ptr(new QDirPrivate(this)){    Q_D(QDir);    d->setPath(path.isEmpty() ? QString::fromLatin1(".") : path);    d->data->nameFilters = QStringList(QString::fromLatin1("*"));    d->data->filters = AllEntries;    d->data->sort = SortFlags(Name | IgnoreCase);}/*!    Constructs a QDir with path \a path, that filters its entries by    name using \a nameFilter and by attributes using \a filters. It    also sorts the names using \a sort.    The default \a nameFilter is an empty string, which excludes    nothing; the default \a filters is \l AllEntries, which also means    exclude nothing. The default \a sort is \l Name | \l IgnoreCase,    i.e. sort by name case-insensitively.    If \a path is an empty string, QDir uses "." (the current    directory). If \a nameFilter is an empty string, QDir uses the    name filter "*" (all files).    Note that \a path need not exist.    \sa exists(), setPath(), setNameFilter(), setFilter(), setSorting()*/QDir::QDir(const QString &path, const QString &nameFilter,           SortFlags sort, Filters filters)  : d_ptr(new QDirPrivate(this)){    Q_D(QDir);    d->setPath(path.isEmpty() ? QString::fromLatin1(".") : path);    d->data->nameFilters = QDir::nameFiltersFromString(nameFilter);    bool empty = d->data->nameFilters.isEmpty();    if(!empty) {        empty = true;        for(int i = 0; i < d->data->nameFilters.size(); ++i) {            if(!d->data->nameFilters.at(i).isEmpty()) {                empty = false;                break;            }        }    }    if (empty)        d->data->nameFilters = QStringList(QString::fromLatin1("*"));    d->data->sort = sort;    d->data->filters = filters;}/*!    Constructs a QDir object that is a copy of the QDir object for    directory \a dir.    \sa operator=()*/QDir::QDir(const QDir &dir)  : d_ptr(new QDirPrivate(this, &dir)){}/*!    Destroys the QDir object frees up its resources. This has no    effect on the underlying directory in the file system.*/QDir::~QDir(){    delete d_ptr;    d_ptr = 0;}/*!    Sets the path of the directory to \a path. The path is cleaned of    redundant ".", ".." and of multiple separators. No check is made    to see whether a directory with this path actually exists; but you    can check for yourself using exists().    The path can be either absolute or relative. Absolute paths begin    with the directory separator "/" (optionally preceded by a drive    specification under Windows). Relative file names begin with a    directory name or a file name and specify a path relative to the    current directory. An example of an absolute path is the string    "/tmp/quartz", a relative path might look like "src/fatlib".    \sa path(), absolutePath(), exists(), cleanPath(), dirName(),      absoluteFilePath(), isRelative(), makeAbsolute()*/void QDir::setPath(const QString &path){    Q_D(QDir);    d->setPath(path);}/*!    Returns the path. This may contain symbolic links, but never    contains redundant ".", ".." or multiple separators.    The returned path can be either absolute or relative (see    setPath()).    \sa setPath(), absolutePath(), exists(), cleanPath(), dirName(),    absoluteFilePath(), toNativeSeparators(), makeAbsolute()*/QString QDir::path() const{    Q_D(const QDir);    return d->data->path;}/*!    Returns the absolute path (a path that starts with "/" or with a    drive specification), which may contain symbolic links, but never    contains redundant ".", ".." or multiple separators.    \sa setPath(), canonicalPath(), exists(), cleanPath(),    dirName(), absoluteFilePath()*/QString QDir::absolutePath() const{    Q_D(const QDir);    QString ret = d->data->path;    if (QDir::isRelativePath(ret))        ret = absoluteFilePath(QString::fromLatin1(""));    return cleanPath(ret);}/*!    Returns the canonical path, i.e. a path without symbolic links or    redundant "." or ".." elements.    On systems that do not have symbolic links this function will    always return the same string that absolutePath() returns. If the    canonical path does not exist (normally due to dangling symbolic    links) canonicalPath() returns an empty string.    Example:    \code        QString bin = "/local/bin";         // where /local/bin is a symlink to /usr/bin        QDir binDir(bin);        QString canonicalBin = binDir.canonicalPath();        // canonicalBin now equals "/usr/bin"        QString ls = "/local/bin/ls";       // where ls is the executable "ls"        QDir lsDir(ls);        QString canonicalLs = lsDir.canonicalPath();        // canonicalLS now equals "/usr/bin/ls".    \endcode    \sa path(), absolutePath(), exists(), cleanPath(), dirName(),        absoluteFilePath()*/QString QDir::canonicalPath() const{    Q_D(const QDir);    if(!d->data->fileEngine)        return QLatin1String("");    return cleanPath(d->data->fileEngine->fileName(QAbstractFileEngine::CanonicalName));}/*!    Returns the name of the directory; this is \e not the same as the    path, e.g. a directory with the name "mail", might have the path    "/var/spool/mail". If the directory has no name (e.g. it is the    root directory) an empty string is returned.    No check is made to ensure that a directory with this name    actually exists; but see exists().    \sa path(), filePath(), absolutePath(), absoluteFilePath()*/QString QDir::dirName() const{    Q_D(const QDir);    int pos = d->data->path.lastIndexOf(QLatin1Char('/'));    if (pos == -1)        return d->data->path;    return d->data->path.mid(pos + 1);}/*!    Returns the path name of a file in the directory. Does \e not    check if the file actually exists in the directory; but see    exists(). If the QDir is relative the returned path name will also    be relative. Redundant multiple separators or "." and ".."    directories in \a fileName are not removed (see cleanPath()).    \sa dirName() absoluteFilePath(), isRelative(), canonicalPath()*/QString QDir::filePath(const QString &fileName) const{    Q_D(const QDir);    if (isAbsolutePath(fileName))        return QString(fileName);    QString ret = d->data->path;    if(!fileName.isEmpty()) {        if (!ret.isEmpty() && ret[(int)ret.length()-1] != QLatin1Char('/') && fileName[0] != QLatin1Char('/'))            ret += QLatin1Char('/');        ret += fileName;    }    return ret;}/*!    Returns the absolute path name of a file in the directory. Does \e    not check if the file actually exists in the directory; but see    exists(). Redundant multiple separators or "." and ".."    directories in \a fileName are not removed (see cleanPath()).    \sa relativeFilePath() filePath() canonicalPath()*/QString QDir::absoluteFilePath(const QString &fileName) const{    Q_D(const QDir);    if (isAbsolutePath(fileName))        return fileName;    if(!d->data->fileEngine)        return fileName;    QString ret;    if (isRelativePath(d->data->path)) //get pwd        ret = QFSFileEngine::currentPath(fileName);    if(!d->data->path.isEmpty() && d->data->path != QLatin1String(".")) {        if (!ret.isEmpty() && !ret.endsWith(QLatin1Char('/')))            ret += QLatin1Char('/');        ret += d->data->path;    }    if (!fileName.isEmpty()) {        if (!ret.isEmpty() && !ret.endsWith(QLatin1Char('/')))            ret += QLatin1Char('/');        ret += fileName;    }    return ret;}/*!    Returns the path to \a fileName relative to the directory.    \code        QDir dir("/home/bob");        QString s;        s = dir.relativePath("images/file.jpg");     // s is "images/file.jpg"        s = dir.relativePath("/home/mary/file.txt"); // s is "../mary/file.txt"    \endcode    \sa absoluteFilePath() filePath() canonicalPath()*/QString QDir::relativeFilePath(const QString &fileName) const{    QString dir = absolutePath();    QString file = cleanPath(fileName);    if (isRelativePath(file) || isRelativePath(dir))        return file;    QString dirDrive = driveSpec(dir);    QString fileDrive = driveSpec(file);    bool fileDriveMissing = false;    if (fileDrive.isEmpty()) {        fileDrive = dirDrive;        fileDriveMissing = true;    }#ifdef Q_OS_WIN    if (fileDrive.toLower() != dirDrive.toLower())#else    if (fileDrive != dirDrive)#endif        return file;    dir.remove(0, dirDrive.size());    if (!fileDriveMissing)        file.remove(0, fileDrive.size());    QString result;    QStringList dirElts = dir.split(QLatin1Char('/'), QString::SkipEmptyParts);    QStringList fileElts = file.split(QLatin1Char('/'), QString::SkipEmptyParts);    int i = 0;    while (i < dirElts.size() && i < fileElts.size() &&#ifdef Q_OS_WIN           dirElts.at(i).toLower() == fileElts.at(i).toLower())#else           dirElts.at(i) == fileElts.at(i))#endif        ++i;    for (int j = 0; j < dirElts.size() - i; ++j)        result += QLatin1String("../");    for (int j = i; j < fileElts.size(); ++j) {        result += fileElts.at(j);        if (j < fileElts.size() - 1)            result += QLatin1Char('/');    }    return result;}/*!    \obsolete    Use QDir::toNativeSeparators() instead.*/QString QDir::convertSeparators(const QString &pathName){    return toNativeSeparators(pathName);}/*!    \since 4.2    Returns \a pathName with the '/' separators converted to    separators that are appropriate for the underlying operating    system.    On Windows, toNativeSeparators("c:/winnt/system32") returns    "c:\\winnt\\system32".    The returned string may be the same as the argument on some    operating systems, for example on Unix.    \sa fromNativeSeparators(), separator()*/QString QDir::toNativeSeparators(const QString &pathName){    QString n(pathName);#if defined(Q_FS_FAT) || defined(Q_OS_OS2EMX)    for (int i=0; i<(int)n.length(); i++) {        if (n[i] == '/')            n[i] = '\\';    }#endif    return n;}/*!    \since 4.2    Returns \a pathName with the native '\\' separators converted to    '/' separators.    On Windows, fromNativeSeparators("c:\\winnt\\system32") returns    "c:/winnt/system32".    The returned string may be the same as the argument on some    operating systems, for example on Unix.    \sa toNativeSeparators(), separator()*/QString QDir::fromNativeSeparators(const QString &pathName){    QString n(pathName);#if defined(Q_FS_FAT) || defined(Q_OS_OS2EMX)    for (int i=0; i<(int)n.length(); i++) {        if (n[i] == '\\')            n[i] = '/';    }#endif    return n;}/*!    Changes the QDir's directory to \a dirName.    Returns true if the new directory exists and is readable;    otherwise returns false. Note that the logical cd() operation is    not performed if the new directory does not exist.    Calling cd("..") is equivalent to calling cdUp().    \sa cdUp(), isReadable(), exists(), path()*/bool QDir::cd(const QString &dirName){    Q_D(QDir);    if (dirName.isEmpty() || dirName == QLatin1String("."))

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产主播一区二区三区| 日韩欧美久久久| 6080日韩午夜伦伦午夜伦| 久久亚洲综合色一区二区三区| 最新国产成人在线观看| 国产一区二区在线免费观看| 欧美日免费三级在线| 中文字幕av一区二区三区高 | 国产激情一区二区三区桃花岛亚洲 | 99久精品国产| 久久久国产综合精品女国产盗摄| 午夜精品久久久| 色拍拍在线精品视频8848| 亚洲国产精品国自产拍av| 毛片不卡一区二区| 正在播放一区二区| 亚洲成年人网站在线观看| 成人精品高清在线| 久久久国产一区二区三区四区小说| 手机精品视频在线观看| 欧美系列一区二区| 亚洲最新视频在线观看| 91在线丨porny丨国产| 国产欧美日韩麻豆91| 国产传媒欧美日韩成人| 久久夜色精品国产噜噜av| 韩国女主播一区二区三区| 日韩欧美卡一卡二| 韩国在线一区二区| 2024国产精品| 国产精品18久久久久久久久久久久 | 国产成人av一区二区三区在线| 日韩精品一区二区三区视频播放| 天堂成人免费av电影一区| 欧美日本视频在线| 一区二区久久久久| 欧美日韩精品免费| 老司机免费视频一区二区| 欧美大片国产精品| 国产一区不卡精品| 中文字幕一区二区在线观看| 99国产精品视频免费观看| 一区二区三区免费看视频| 欧美精品xxxxbbbb| 蜜臀av一区二区| 久久久久久久久久久黄色| av爱爱亚洲一区| 午夜视频一区二区| 欧美xxx久久| av在线不卡电影| 午夜视频在线观看一区| 精品久久久久久久久久久久久久久久久| 老司机精品视频一区二区三区| 久久久不卡网国产精品一区| 成人综合婷婷国产精品久久蜜臀 | 亚洲男女毛片无遮挡| 欧美探花视频资源| 开心九九激情九九欧美日韩精美视频电影| 欧美第一区第二区| 成人黄色777网| 午夜一区二区三区在线观看| 精品国产乱码久久久久久夜甘婷婷| 国产盗摄一区二区| 天天综合网天天综合色| 久久亚洲捆绑美女| 欧美性猛交xxxx乱大交退制版| 青娱乐精品在线视频| 国产精品毛片a∨一区二区三区| 色拍拍在线精品视频8848| 捆绑调教一区二区三区| 国产精品网站在线观看| 欧美日韩精品一区视频| 国产福利不卡视频| 亚洲1区2区3区4区| 国产精品二区一区二区aⅴ污介绍| 在线影院国内精品| 国产精品99久久久久久有的能看| 亚洲二区视频在线| 国产精品免费aⅴ片在线观看| 欧美日韩精品福利| 91污在线观看| 国产精品一级片| 蜜桃久久久久久| 亚洲影院久久精品| 亚洲天堂网中文字| 久久人人爽爽爽人久久久| 欧美性感一类影片在线播放| av网站一区二区三区| 韩国欧美国产一区| 免播放器亚洲一区| 午夜视频一区二区| 亚洲一区二区三区不卡国产欧美| 国产日产精品1区| 欧美精品一区二区三| 在线播放91灌醉迷j高跟美女 | 欧美老女人在线| 色视频成人在线观看免| 99麻豆久久久国产精品免费优播| 精品一区二区三区免费视频| 青青青爽久久午夜综合久久午夜| 一区二区三区小说| 亚洲视频小说图片| 中文字幕一区三区| 国产午夜精品福利| 国产欧美日韩不卡| 久久精品视频免费观看| 精品国产a毛片| 欧美精品一区男女天堂| 日韩欧美国产系列| 日韩欧美国产不卡| 欧美不卡激情三级在线观看| 欧美videos大乳护士334| 欧美大片在线观看| 久久久综合视频| 欧美经典一区二区三区| 国产亚洲精品bt天堂精选| 久久精品水蜜桃av综合天堂| 国产视频一区二区在线观看| 国产女人18毛片水真多成人如厕 | 日本久久一区二区| 欧美图片一区二区三区| 欧美丰满高潮xxxx喷水动漫| 欧美一区二区免费观在线| 91精品国产全国免费观看| 日韩精品最新网址| 国产精品三级在线观看| 综合色天天鬼久久鬼色| 亚洲黄色小说网站| 三级久久三级久久| 紧缚奴在线一区二区三区| 韩日精品视频一区| 97久久精品人人做人人爽| 欧美在线免费观看亚洲| 91精品国产综合久久精品麻豆| 日韩亚洲欧美成人一区| 国产亚洲综合在线| 亚洲另类在线制服丝袜| 午夜视频在线观看一区二区| 韩国v欧美v亚洲v日本v| 北条麻妃一区二区三区| 欧美夫妻性生活| 国产欧美一区二区三区在线老狼| 综合久久久久久| 日韩黄色片在线观看| 国产精品亚洲一区二区三区在线| 99re6这里只有精品视频在线观看| 欧美日韩亚洲丝袜制服| 久久精品人人爽人人爽| 一区二区视频在线| 精品在线一区二区| 色综合天天天天做夜夜夜夜做| 制服丝袜中文字幕一区| 国产精品视频在线看| 日韩激情中文字幕| 99国产精品久久久久久久久久久 | 亚洲欧洲精品成人久久奇米网| 亚洲国产另类av| 国产aⅴ综合色| 欧美精品久久天天躁| 国产精品视频麻豆| 视频一区在线视频| 不卡一区二区三区四区| 欧美不卡视频一区| 亚洲一级二级在线| av一区二区三区| wwwwww.欧美系列| 日本中文在线一区| 91丨porny丨在线| 久久婷婷国产综合精品青草 | 中文字幕一区二区三区四区| 日本欧美加勒比视频| 色94色欧美sute亚洲13| 欧美高清在线精品一区| 日本不卡视频在线观看| 在线观看一区二区精品视频| 国产精品天干天干在观线| 国产在线国偷精品免费看| 欧美裸体一区二区三区| 亚洲一卡二卡三卡四卡| 9色porny自拍视频一区二区| 国产亚洲精久久久久久| 久久国产精品第一页| 91精品国产综合久久福利| 夜夜爽夜夜爽精品视频| 色哟哟一区二区在线观看| 国产女同互慰高潮91漫画| 国产一区二区91| 久久亚洲一区二区三区明星换脸| 午夜激情一区二区三区| 欧美视频在线播放| 亚洲伊人色欲综合网| 欧美影视一区在线| 亚洲最新视频在线观看| 在线观看日韩一区| 亚洲一级二级三级| 欧美色涩在线第一页| 亚洲国产一区视频| 在线免费观看视频一区| 亚洲精品视频在线看| 在线观看日产精品|