Make it compile with Qt4 or QGraphicsMozView