2014-12-02 16:21:54 +01:00
|
|
|
/****************************************************************************
|
|
|
|
|
**
|
2016-01-15 14:51:16 +01:00
|
|
|
** Copyright (C) 2016 The Qt Company Ltd.
|
|
|
|
|
** Contact: https://www.qt.io/licensing/
|
2014-12-02 16:21:54 +01:00
|
|
|
**
|
2016-01-15 14:51:16 +01:00
|
|
|
** This file is part of the Qt Creator documentation.
|
2014-12-02 16:21:54 +01:00
|
|
|
**
|
|
|
|
|
** Commercial License Usage
|
|
|
|
|
** Licensees holding valid commercial Qt licenses may use this file in
|
|
|
|
|
** accordance with the commercial license agreement provided with the
|
|
|
|
|
** Software or, alternatively, in accordance with the terms contained in
|
2016-01-15 14:51:16 +01:00
|
|
|
** a written agreement between you and The Qt Company. For licensing terms
|
|
|
|
|
** and conditions see https://www.qt.io/terms-conditions. For further
|
|
|
|
|
** information use the contact form at https://www.qt.io/contact-us.
|
2014-12-02 16:21:54 +01:00
|
|
|
**
|
2016-01-15 14:51:16 +01:00
|
|
|
** GNU Free Documentation License Usage
|
|
|
|
|
** Alternatively, this file may be used under the terms of the GNU Free
|
|
|
|
|
** Documentation License version 1.3 as published by the Free Software
|
|
|
|
|
** Foundation and appearing in the file included in the packaging of
|
|
|
|
|
** this file. Please review the following information to ensure
|
|
|
|
|
** the GNU Free Documentation License version 1.3 requirements
|
|
|
|
|
** will be met: https://www.gnu.org/licenses/fdl-1.3.html.
|
2014-12-02 16:21:54 +01:00
|
|
|
**
|
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
|
\contentspage {Qt Creator Manual}
|
2015-11-19 16:29:31 +01:00
|
|
|
\previouspage creator-using-qt-quick-designer.html
|
2014-12-02 16:21:54 +01:00
|
|
|
\page qmldesigner-pathview-editor.html
|
|
|
|
|
\nextpage qmldesigner-connections.html
|
|
|
|
|
|
|
|
|
|
\title Editing PathView Properties
|
|
|
|
|
|
|
|
|
|
A \l{PathView} lays out data provided by data models on a \l{Path}.
|
|
|
|
|
|
|
|
|
|
A graphical spline editor enables you to specify PathView paths, which
|
2015-09-23 15:46:10 +02:00
|
|
|
is a non-trivial task to do in the code editor.
|
2014-12-02 16:21:54 +01:00
|
|
|
|
|
|
|
|
\image qmldesigner-pathview-editor.png "PathView editor"
|
|
|
|
|
|
|
|
|
|
To start editing the Path, double-click the PathView on the canvas. The
|
|
|
|
|
editor composes the path of PathCubic path objects. They are cubic Bezier
|
|
|
|
|
curves to a given position with two control points. Drag and drop the
|
|
|
|
|
control points to construct the curve.
|
|
|
|
|
|
|
|
|
|
In addition, PathLine and PathQuad path objects are supported indirectly.
|
2014-12-11 15:43:19 +01:00
|
|
|
To make a curve segment linear, select \uicontrol {Make Curve Segment Straight} in
|
2014-12-02 16:21:54 +01:00
|
|
|
the context menu.
|
|
|
|
|
|
|
|
|
|
By default, the Path is closed, which means that its start and end points
|
|
|
|
|
are identical. To create separate start and end points for it, right-click
|
2014-12-11 15:43:19 +01:00
|
|
|
an edit point to open a context menu, and deselect \uicontrol {Closed Path}.
|
2014-12-02 16:21:54 +01:00
|
|
|
|
2014-12-11 15:43:19 +01:00
|
|
|
To add intermediary points to a curve segment, select \uicontrol {Split Segment}
|
2014-12-02 16:21:54 +01:00
|
|
|
in the context menu.
|
|
|
|
|
|
2014-12-11 15:43:19 +01:00
|
|
|
In the \uicontrol Properties pane, you can specify other properties for
|
2014-12-02 16:21:54 +01:00
|
|
|
the PathView. For example, what is the maximum distance from the path that
|
|
|
|
|
initiates mouse dragging and what is the rate at which a flick will
|
|
|
|
|
decelerate.
|
|
|
|
|
|
|
|
|
|
*/
|