资源简介
qt5 qftp, qt5 qftp,qt5 qftp,qt5 qftp,qt5 qftp ftp list cd mkdir rmdir get down
代码片段和文件信息
/****************************************************************************
**
** Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of the examples of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:BSD$
** You may use this file under the terms of the BSD license as follows:
**
** “Redistribution and use in source and binary forms with or without
** modification are permitted provided that the following conditions are
** met:
** * Redistributions of source code must retain the above copyright
** notice this list of conditions and the following disclaimer.
** * Redistributions in binary form must reproduce the above copyright
** notice this list of conditions and the following disclaimer in
** the documentation and/or other materials provided with the
** distribution.
** * Neither the name of Digia Plc and its Subsidiary(-ies) nor the names
** of its contributors may be used to endorse or promote products derived
** from this software without specific prior written permission.
**
**
** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
** “AS IS“ AND ANY EXPRESS OR IMPLIED WARRANTIES INCLUDING BUT NOT
** LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT INDIRECT INCIDENTAL
** SPECIAL EXEMPLARY OR CONSEQUENTIAL DAMAGES (INCLUDING BUT NOT
** LIMITED TO PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE
** DATA OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
** THEORY OF LIABILITY WHETHER IN CONTRACT STRICT LIABILITY OR TORT
** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
** OF THIS SOFTWARE EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.“
**
** $QT_END_LICENSE$
**
****************************************************************************/
#include
#include
#include
#include “ftpwindow.h“
FtpWindow::FtpWindow(QWidget *parent)
: QDialog(parent) ftp(0) networkSession(0)
{
ftpServerLabel = new QLabel(tr(“Ftp &server:“));
ftpServerLineEdit = new QLineEdit(“ftp.qt.nokia.com“);
ftpServerLabel->setBuddy(ftpServerLineEdit);
statusLabel = new QLabel(tr(“Please enter the name of an FTP server.“));
fileList = new QTreeWidget;
fileList->setEnabled(false);
fileList->setRootIsDecorated(false);
fileList->setHeaderLabels(QStringList() << tr(“Name“) << tr(“Size“) << tr(“Owner“) << tr(“Group“) << tr(“Time“));
fileList->header()->setStretchLastSection(false);
connectButton = new QPushButton(tr(“Connect“));
connectButton->setDefault(true);
cdToParentButton = new QPushButton;
cdToParentButton->setIcon(QPixmap(“:/images/cdtoparent.png“));
cdToParentButton->setEnabled(false);
do
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 305 2018-01-11 10:59 qtftp\.git\config
文件 73 2018-01-11 10:59 qtftp\.git\desc
文件 23 2018-01-11 10:59 qtftp\.git\HEAD
文件 478 2018-01-11 10:59 qtftp\.git\hooks\applypatch-msg.sample
文件 896 2018-01-11 10:59 qtftp\.git\hooks\commit-msg.sample
文件 189 2018-01-11 10:59 qtftp\.git\hooks\post-update.sample
文件 424 2018-01-11 10:59 qtftp\.git\hooks\pre-applypatch.sample
文件 1642 2018-01-11 10:59 qtftp\.git\hooks\pre-commit.sample
文件 1348 2018-01-11 10:59 qtftp\.git\hooks\pre-push.sample
文件 4951 2018-01-11 10:59 qtftp\.git\hooks\pre-reba
文件 544 2018-01-11 10:59 qtftp\.git\hooks\pre-receive.sample
文件 1239 2018-01-11 10:59 qtftp\.git\hooks\prepare-commit-msg.sample
文件 3610 2018-01-11 10:59 qtftp\.git\hooks\update.sample
文件 4238 2018-01-11 10:59 qtftp\.git\index
文件 240 2018-01-11 10:59 qtftp\.git\info\exclude
文件 187 2018-01-11 10:59 qtftp\.git\logs\HEAD
文件 187 2018-01-11 10:59 qtftp\.git\logs\refs\heads\master
文件 187 2018-01-11 10:59 qtftp\.git\logs\refs\remotes\origin\HEAD
文件 7288 2018-01-11 10:59 qtftp\.git\ob
文件 122131 2018-01-11 10:59 qtftp\.git\ob
文件 207 2018-01-11 10:59 qtftp\.git\packed-refs
文件 41 2018-01-11 10:59 qtftp\.git\refs\heads\master
文件 32 2018-01-11 10:59 qtftp\.git\refs\remotes\origin\HEAD
文件 92 2018-01-11 10:59 qtftp\.gitattributes
文件 4419 2018-01-11 10:59 qtftp\.gitignore
文件 49 2018-01-11 10:59 qtftp\.qmake.conf
文件 13 2018-01-11 10:59 qtftp\.tag
文件 39 2018-01-11 10:59 qtftp\examples\examples.pro
文件 12371 2018-01-11 10:59 qtftp\examples\qftp\doc\images\ftp-example.png
文件 8710 2018-01-11 10:59 qtftp\examples\qftp\doc\src\ftp.qdoc
............此处省略71个文件信息
评论
共有 条评论