//Create transparent QPixmap that accepts hovers
// so that moveMouseEvent is triggered
QPixmap qpm = new QPixmap(new QSize((numCols + 1) * (tileSize + 1),
(numRows + 1) * (tileSize + 1)));
qpm.fill(new QColor(255, 255,255, 0));
QGraphicsPixmapItem background = addPixmap(qpm);
background.setAcceptsHoverEvents(true);
background.setZValue(-1);
// Draw colored tiles onto QImage
qImage = new QImage(new QSize((numCols + 1) * (tileSize + 1),
(numRows + 1) * (tileSize + 1)), Format.Format_RGB16);
QPainter painter = new QPainter(qImage);