Header File:
#ifndef __INWAITSPLASH_H__
#define __INWAITSPLASH_H__
#include "ui_INWaitSplash.h"
#define ROWSIZE 4
#define COLUMNSIZE 4
#define TAILLENGTH 4
class CINWaitSplash
: public QWidget{
Q_OBJECT
public:
CINWaitSplash
(QWidget * parent
= 0, Qt
::WindowFlags f
= Qt
::SplashScreen|Qt
::WindowStaysOnTopHint);
void Init();
void Start();
void Stop();
protected:
void InitTable();
private slots:
// Table Pattern Algorithms
void FillTable_SnakePattern();
//void FillTable_RandomPattern();
//void FillTable_BoxPattern();
private:
Ui::SplashForm ui;
int m_aiCellTable[COLUMNSIZE][ROWSIZE];
};
#endif
#ifndef __INWAITSPLASH_H__
#define __INWAITSPLASH_H__
#include "ui_INWaitSplash.h"
#define ROWSIZE 4
#define COLUMNSIZE 4
#define TAILLENGTH 4
class CINWaitSplash : public QWidget
{
Q_OBJECT
public:
CINWaitSplash(QWidget * parent = 0, Qt::WindowFlags f = Qt::SplashScreen|Qt::WindowStaysOnTopHint);
void Init();
void Start();
void Stop();
protected:
void paintEvent(QPaintEvent *);
void InitTable();
private slots:
// Table Pattern Algorithms
void FillTable_SnakePattern();
//void FillTable_RandomPattern();
//void FillTable_BoxPattern();
private:
Ui::SplashForm ui;
QTimer* m_timerMain;
int m_aiCellTable[COLUMNSIZE][ROWSIZE];
};
#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.
Bookmarks