qt6-bb10/examples/widgets/itemviews
Edward Welbourne 0b822c2209 Examples: use std::atan2 for simper angle calculations
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>
2017-02-23 16:43:35 +00:00
..
addressbook Examples: Replace 'Q_DECL_OVERRIDE' by 'override' 2016-06-15 09:32:30 +00:00
basicsortfiltermodel examples: Use QOverload to select overloaded signals and slots 2016-12-22 14:54:55 +00:00
chart Examples: use std::atan2 for simper angle calculations 2017-02-23 16:43:35 +00:00
coloreditorfactory Unify license header usage. 2016-03-29 10:20:03 +00:00
combowidgetmapper Unify license header usage. 2016-03-29 10:20:03 +00:00
customsortfiltermodel Examples: Replace 'Q_DECL_OVERRIDE' by 'override' 2016-06-15 09:32:30 +00:00
dirview Merge remote-tracking branch 'origin/5.6' into 5.7 2016-05-19 12:55:27 +02:00
editabletreemodel Examples: Replace 'Q_DECL_OVERRIDE' by 'override' 2016-06-15 09:32:30 +00:00
fetchmore Examples: Replace 'Q_DECL_OVERRIDE' by 'override' 2016-06-15 09:32:30 +00:00
frozencolumn Examples: Remove a redundant virtual specifier for overriders 2016-11-25 22:36:21 +00:00
interview Examples: Replace 'Q_DECL_OVERRIDE' by 'override' 2016-06-15 09:32:30 +00:00
pixelator examples: Use QOverload to select overloaded signals and slots 2016-12-22 14:54:55 +00:00
puzzle Examples: Replace 'Q_DECL_OVERRIDE' by 'override' 2016-06-15 09:32:30 +00:00
simpledommodel Examples: Replace 'Q_DECL_OVERRIDE' by 'override' 2016-06-15 09:32:30 +00:00
simpletreemodel Examples: Replace 'Q_DECL_OVERRIDE' by 'override' 2016-06-15 09:32:30 +00:00
simplewidgetmapper Unify license header usage. 2016-03-29 10:20:03 +00:00
spinboxdelegate Examples: Replace 'Q_DECL_OVERRIDE' by 'override' 2016-06-15 09:32:30 +00:00
spreadsheet Examples: Replace 'Q_DECL_OVERRIDE' by 'override' 2016-06-15 09:32:30 +00:00
stardelegate Examples: Replace 'Q_DECL_OVERRIDE' by 'override' 2016-06-15 09:32:30 +00:00
storageview Merge remote-tracking branch 'origin/5.6' into 5.7 2016-05-06 15:36:44 +02:00
README Moving .qdoc files under examples/widgets/doc 2012-08-20 12:20:55 +02:00
itemviews.pro Add the StorageView example 2014-08-14 08:20:45 +02:00

README

Item views are widgets that typically display data sets. Qt 4's model/view
framework lets you handle large data sets by separating the underlying data
from the way it is represented to the user, and provides support for
customized rendering through the use of delegates.


Documentation for these examples can be found via the Examples
link in the main Qt documentation.