The QPolygonF.translate function in C++ is used to move or shift the coordinates of a polygon by a specified offset. This function takes the x and y values of the desired translation as parameters and modifies the polygon in-place. By applying this function, all the points of the polygon are shifted in the x and y directions, resulting in a new location for the polygon.
C++ (Cpp) QPolygonF::translate - 24 examples found. These are the top rated real world C++ (Cpp) examples of QPolygonF::translate extracted from open source projects. You can rate examples to help us improve the quality of examples.