main.cpp
Go to the documentation of this file.
00001 #include <QtGui/QApplication>
00002 #include "mainwindow.h"
00003 #include <QSplashScreen>
00004 #include <unistd.h>
00005 
00006 
00007 int main(int argc, char *argv[])
00008 {
00009 
00010 
00011     QApplication a(argc, argv);
00012     Q_INIT_RESOURCE(images);
00013 
00014     QSplashScreen *splash = new QSplashScreen;
00015 
00016     splash->setPixmap(QPixmap("../resources/images/splash.jpg"));
00017     //sleep(1.5);
00018     splash->show();
00019     splash->showMessage(QObject::tr("ROS GUI is launching...."),Qt::AlignBottom,Qt::black);
00020     //ssleep(1);
00021 
00022     MainWindow w;
00023 
00024     w.show();
00025 
00026     splash->finish(&w);
00027     delete splash;
00028 
00029     a.setStyle("gtk+");
00030     a.exec();
00031 
00032     return 0;
00033 }


corobot_teleop
Author(s): Morgan Cormier/Gang Li/mcormier@coroware.com
autogenerated on Tue Jan 7 2014 11:39:41