source: trunk/examples/network/networkprotocol/main.cpp

Last change on this file was 2, checked in by dmik, 20 years ago

Imported xplatform parts of the official release 3.3.1 from Trolltech

  • Property svn:keywords set to Id
File size: 792 bytes
Line 
1/****************************************************************************
2** $Id: main.cpp 2 2005-11-16 15:49:26Z dmik $
3**
4** Copyright (C) 1992-2000 Trolltech AS. All rights reserved.
5**
6** This file is part of an example program for Qt. This example
7** program may be used, distributed and modified without limitation.
8**
9*****************************************************************************/
10
11#include <qapplication.h>
12#include <qnetwork.h>
13
14#include "nntp.h"
15#include "view.h"
16
17int main( int argc, char **argv )
18{
19 QApplication a( argc, argv );
20
21 qInitNetworkProtocols();
22 QNetworkProtocol::registerNetworkProtocol( "nntp", new QNetworkProtocolFactory<Nntp> );
23
24 View v;
25 v.resize( 600, 600 );
26 v.show();
27 a.setMainWidget( &v );
28
29 return a.exec();
30}
Note: See TracBrowser for help on using the repository browser.