Are there any messages on the console? Did you add Q_OBJECT macro and declared FillTable_SnakePattern() as a slot?