0b822c2209
Using std::atan2 gets the right answer directly from dy and dx, without having to fix up quadrant as we needed to with acos (albeit we have to negate dy in some cases, to match prior sense of angles). In the process, it avoids explicit division, which would be an error when the line's length is zero. Change-Id: Ia2923159d38834e08e6f15cbff6766ed419fa804 Reviewed-by: Marc Mutz <marc.mutz@kdab.com> |
||
---|---|---|
.. | ||
anchorlayout | ||
basicgraphicslayouts | ||
boxes | ||
chip | ||
collidingmice | ||
diagramscene | ||
dragdroprobot | ||
elasticnodes | ||
embeddeddialogs | ||
flowlayout | ||
padnavigator | ||
simpleanchorlayout | ||
weatheranchorlayout | ||
graphicsview.pro | ||
README |
Qt is provided with a comprehensive canvas through the GraphicsView classes. These examples demonstrate the fundamental aspects of canvas programming with Qt. Documentation for these examples can be found via the Examples link in the main Qt documentation.