Header File:
Qt Code:
  1. #ifndef __INWAITSPLASH_H__
  2. #define __INWAITSPLASH_H__
  3.  
  4. #include "ui_INWaitSplash.h"
  5.  
  6. #define ROWSIZE 4
  7. #define COLUMNSIZE 4
  8. #define TAILLENGTH 4
  9.  
  10. class CINWaitSplash : public QWidget
  11. {
  12. Q_OBJECT
  13.  
  14. public:
  15. CINWaitSplash(QWidget * parent = 0, Qt::WindowFlags f = Qt::SplashScreen|Qt::WindowStaysOnTopHint);
  16.  
  17. void Init();
  18. void Start();
  19. void Stop();
  20.  
  21. protected:
  22. void paintEvent(QPaintEvent *);
  23. void InitTable();
  24.  
  25. private slots:
  26. // Table Pattern Algorithms
  27. void FillTable_SnakePattern();
  28. //void FillTable_RandomPattern();
  29. //void FillTable_BoxPattern();
  30.  
  31. private:
  32. Ui::SplashForm ui;
  33.  
  34. QTimer* m_timerMain;
  35.  
  36. int m_aiCellTable[COLUMNSIZE][ROWSIZE];
  37. };
  38.  
  39. #endif
To copy to clipboard, switch view to plain text mode 

As for an event loop... I would have to say no because I am not sure what an event loop is. It is strange because if I turn the timers setInterval(100) to start(100) it will trigger... but after I run my Start() method from a function in my MainWindow it stops... and obviously stops on my Stop() method. So I know the connection is setup. I must be missing something fundamental.