?? main.cpp
字號:
#include <QtCore>
#include <QObject>
#include "ftplogin.h"
int main(int argc, char *argv[])
{
QCoreApplication app(argc, argv);
QTextCodec::setCodecForTr( QTextCodec::codecForName("gb18030"));
QStringList args = app.arguments();
if (args.count() !=2){
qDebug()<<QObject::tr("用法: ftplogin url")<<endl
<<QObject::tr("例:")<<endl
<<QObject::tr(" ftplogin ftp://ftp.trolltech.com");
return -1;
}
FtpLogin ftpClient;
if (!ftpClient.logIn(QUrl(args[1])))
return -1;
QObject::connect(&ftpClient,SIGNAL(done()),&app,SLOT(quit()));
return app.exec();
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -