no idea how I ended up forgetting about the offset I need for same position in different rows (in 1d array); also remove obsolete comment
#include <QtGui/QApplication>
#include "mainwindow.h"
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
MainWindow w;
w.show();
return a.exec();
}