⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 main.cpp

📁 qt代码的网络编程
💻 CPP
字号:
/****************************************************************************** $Id: qt/examples/ftpclient/main.cpp   2.3.8   edited 2004-08-05 $**** Copyright (C) 1992-2000 Trolltech AS.  All rights reserved.**** This file is part of an example program for Qt.  This example** program may be used, distributed and modified without limitation.*******************************************************************************/#include <qapplication.h>#include <qnetwork.h>#include <qsplitter.h>#include "ftpmainwindow.h"int main( int argc, char **argv ){    QApplication a( argc, argv );    // call this to register the FTP network protocol    // (and in the future more available ones)    qInitNetworkProtocols();    FtpMainWindow m;    a.setMainWidget( &m );    QValueList<int> sizes;    sizes << 300 << 70 << 300;    m.mainSplitter()->setSizes( sizes );    m.resize( 800, 600 );    m.setCaption("Qt Example - FTP Client");    m.show();    return a.exec();}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -