giostau
11th April 2013, 12:49
Hi to all!
maybe my question is stupid, but i'm stuck for a while with this.... :(
I want to create a QpolygonF from a set of points...
The problem is that the order of the points i have is wrong, and the polygon is created wrong.
i.e. instead of a square, i get a double-z-like shape (i mean that the horizontal lines are ok, but instead of the vertical ones, i get two diagonal...)
when i try to draw polygons with more that 4 points, things are much worse....
how can i fix this?
Thank you in advance!
maybe my question is stupid, but i'm stuck for a while with this.... :(
I want to create a QpolygonF from a set of points...
The problem is that the order of the points i have is wrong, and the polygon is created wrong.
i.e. instead of a square, i get a double-z-like shape (i mean that the horizontal lines are ok, but instead of the vertical ones, i get two diagonal...)
when i try to draw polygons with more that 4 points, things are much worse....
how can i fix this?
Thank you in advance!