main.cpp

Idź do dokumentacji tego pliku.
00001 #include <QApplication>
00002 #include <QDesktopWidget>
00003 #include "GUIMainWindow.h"
00004 
00005 
00006 int main(int argc, char *argv[])
00007 {
00008         QApplication app(argc, argv);
00009 
00010                 QDesktopWidget *d = QApplication::desktop();
00011             int w = d->width()*2/3;     // returns desktop width
00012             int h = d->height()*2/3;    // returns desktop height*/
00013 
00014 
00015         GUIMainWindow *window = new GUIMainWindow(0,0);
00016                 window->resize(w,h);
00017                 window->show();
00018 
00019         return app.exec();
00020 }
00021 
00022 

Wygenerowano Sun Jun 11 12:55:08 2006 dla lanChat programem  doxygen 1.4.6