diff options
author | Tim Jenssen <tim.jenssen@qt.io> | 2020-05-12 09:59:55 +0200 |
---|---|---|
committer | Tim Jenssen <tim.jenssen@qt.io> | 2020-05-12 09:59:55 +0200 |
commit | c9b56717542749b271d5e48c7bf7698884e94f8f (patch) | |
tree | 424aabcf1197798d2294cb05eb047d51c4f82bce /doc/qtcreator/src/qtquick/qtquick-form-editor.qdoc | |
parent | 6ab2f93f184470998e452cd709a881258dfef6a0 (diff) | |
parent | 8e1169f4bf6fc97f7f864cefeb5a273f271798cf (diff) |
Merge remote-tracking branch 'origin/4.12' into qds-1.50qds/v1.5.0-rc1
Change-Id: Iee9542b518367018b6e672ff920bfdb411639f8b
Diffstat (limited to 'doc/qtcreator/src/qtquick/qtquick-form-editor.qdoc')
-rw-r--r-- | doc/qtcreator/src/qtquick/qtquick-form-editor.qdoc | 36 |
1 files changed, 25 insertions, 11 deletions
diff --git a/doc/qtcreator/src/qtquick/qtquick-form-editor.qdoc b/doc/qtcreator/src/qtquick/qtquick-form-editor.qdoc index 37a31cc4be..3d963cf7dd 100644 --- a/doc/qtcreator/src/qtquick/qtquick-form-editor.qdoc +++ b/doc/qtcreator/src/qtquick/qtquick-form-editor.qdoc @@ -24,7 +24,6 @@ ****************************************************************************/ /*! - \contentspage index.html \page qtquick-form-editor.html \previouspage quick-components.html \nextpage quick-buttons.html @@ -34,6 +33,26 @@ You design applications in the \uicontrol {Form Editor} by placing items into it. + \image qmldesigner-form-editor.png "Form Editor view" + + \section1 Resizing Items + + When you select items in the \uicontrol {Form Editor}, selection handles + appear around their edges and in their corners. You can drag the selection + handles to resize items. + + \if defined(qtdesignstudio) + To have the resizing done from the center of the selected item instead from + its edges, press \key Alt. + + To preserve the image aspect ratio while resizing when using the corner + handles, press \key Shift. This also works on items that are anchored + using left, right, top, or bottom anchors. + + To both resize from the center of the item and preserve the aspect ratio, + press \key Alt+Shift. + \endif + \section1 Snapping to Parent and Sibling Items When you are working on a design, you can use snapping to align @@ -61,16 +80,6 @@ To hide them, select the \inlineimage boundingrect.png button. - \section1 Selecting Items - - When you point the mouse to overlapping items, the frontmost item is - selected by default. However, items that do not have any content, such as - the mouse area, are typically located in front of items that do have - content, such as rectangles or border images. To select items with content - by default, click the - \inlineimage qmldesigner-only-select-items-with-content.png - button. - \section1 Previewing Component Size The width and height of the root item in a QML file determine the size of @@ -89,6 +98,11 @@ \image qmldesigner-preview-size.png "Canvas width and height" + To set the initial size of the root item, select \uicontrol Tools > + \uicontrol Options > \uicontrol {Qt Quick} > \uicontrol {\QMLD} and + specify the item width and height in the \uicontrol {Root Item Init Size} + group. + \section1 Specifying Canvas Size To change the canvas size, select \uicontrol Tools > \uicontrol Options > |