blob: d8ea373d705536848f0fbbc9878dc8cb8acd5c36 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
// Copyright (C) 2024 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only
/*!
\title Spreadsheets Example
\example spreadsheets
\brief Demonstrates how to create a spreadsheet application.
\examplecategory {User Interface Components}
\image spreadsheets-example.png
{Spreadsheet application with table view showing cells and headers}
The example demonstrates how to combine TableView and HeaderView to
create a spreadsheet application.
\section1 Overview
The spreadsheets example demonstrates how to combine TableView and
HeaderView to create a spreadsheet application. It serves as an
excellent starting point for developers looking to understand the
implementation of spreadsheet-like functionality in their
applications, highlighting the versatility of TableView and
HeaderView while providing practical insights into handling user
interactions and data operations in a grid-based interface.
This example implements a comprehensive set of functionalities,
providing users with a robust set of tools for data manipulation
and structural organization. These functionalities include:
\list
\li Cell Manipulation
\li Data Management
\li Formula Support
\endlist
\section1 Cell Manipulation
This feature set focuses on how users can interact with and modify
the structure of the spreadsheet. Key capabilities in this area
include:
\list
\li Select individual cells, entire rows, or columns
\li Insert and remove rows and columns
\li Show or hide specific rows and columns
\endlist
\section1 Data Management
These features demonstrate advanced data handling capabilities,
allowing users to efficiently manipulate cell contents. The
following operations are supported:
\list
\li Copy, cut, and paste groups of cells
\li Drag and drop cell contents
\li Reorder rows and columns
\endlist
\section1 Formula Support
This section highlights the spreadsheet's ability to perform
calculations, enabling users to create dynamic, interconnected
data. The supported operations include:
\list
\li Perform basic arithmetic operations
\li Calculate sum of a range of cells
\endlist
\section2 Perform basic arithmetic operations
This subsection covers the fundamental mathematical operations that
can be performed within cells. Users can leverage the following
capabilities:
\list
\li Single cell assignment
\li Addition and subtraction
\li Multiplication and division
\endlist
\section2 Calculate sum of a range of cells
The summation feature allows users to quickly total a series of
values. Users can employ a formula syntax similar to common
spreadsheet applications. For example, to sum the values in cells
A1 through B4, one might use a formula like "=SUM A1:B4"
*/
|