//This program is free software: you can redistribute it and/or modify it under the terms #of the GNU General Public License as published by the Free Software Foundation, either #version 3 of the License, or (at your option) any later version. //This program is distributed in the hope that it will be useful, but WITHOUT ANY #WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A #PARTICULAR PURPOSE. See the GNU General Public License for more details. //You should have received a copy of the GNU General Public License along with this #program. If not, see #include #include "mainwindow.h" #include #include #include using namespace std; class SleeperThread : public QThread { public: static void msleep(unsigned long msecs) { QThread::msleep(msecs); } }; int main(int argc, char *argv[]) { QApplication a(argc, argv); QImage miImagen("imagen.png"); QPixmap pix; pix.convertFromImage(miImagen); QSplashScreen *splash = new QSplashScreen(pix); splash->show(); //splash->messageChanged(); splash->showMessage("\n\n\n\n\n\n\n\n\n\n\n\nCargando Algoritmos...",0); a.processEvents(); MainWindow w; SleeperThread::msleep(2000); splash->showMessage("\n\n\n\n\n\n\n\n\n\n\n\nCargando Modulos...",0); SleeperThread::msleep(2000); splash->showMessage("\n\n\n\n\n\n\n\n\n\n\n\nCargando Interfaz...",0); SleeperThread::msleep(2000); w.show(); splash->finish(&w); return a.exec(); }