Hi,
I'm doing a map creator for a isometric game and I use a zoom (qreal) for scale the QPainter surface for zoom, also I use a QRegion (polygon not rectangle) and need to multiply the area for know the square that is below the cursor. How can I do it?
Thank's bye.
Sample code
Qt Code:
Square *square=map.getSquare(i,j); if(square->region().contains(cursorPos)){ //if(region.contains(cursorPos)){ painter.setPen(Qt::red); selectedSquarePosX=i; selectedSquarePosY=j; }To copy to clipboard, switch view to plain text mode
Bookmarks