Merge remote-tracking branch 'origin/5.0'
Change-Id: I86049934ae744e22e4a728ab79c0cf6880ff3c7d
1
.gitignore
vendored
@@ -136,6 +136,7 @@ debug/
|
||||
ipch/
|
||||
release/
|
||||
tmp/
|
||||
.cache/clangd/
|
||||
# ignore both a directory as well as a symlink
|
||||
/share/qtcreator/QtProject
|
||||
|
||||
|
@@ -7,7 +7,7 @@ instructions:
|
||||
variableValue: "RelWithDebInfo"
|
||||
- type: EnvironmentVariable
|
||||
variableName: QTC_QT_BASE_URL
|
||||
variableValue: "http://ci-files02-hki-infra.intra.qt.io/packages/jenkins/archive/qt/6.1/6.1.0-final-released"
|
||||
variableValue: "http://ci-files02-hki.intra.qt.io/packages/jenkins/archive/qt/6.2/6.2.0-beta2-released/"
|
||||
- type: EnvironmentVariable
|
||||
variableName: QTC_QT_MODULES
|
||||
variableValue: "qt5compat qtbase qtdeclarative qtimageformats qtquick3d qtquickcontrols2 qtquicktimeline qtserialport qtshadertools qtsvg qttools qttranslations"
|
||||
|
@@ -32,7 +32,7 @@ instructions:
|
||||
property: host.os
|
||||
in_values: [MacOS, Linux, Windows]
|
||||
- type: ExecuteCommand
|
||||
command: "python -u {{.AgentWorkingDir}}/build/qtsdk/packaging-tools/install_qt.py --qt-path {{.AgentWorkingDir}}/build/qt5_install_dir --temp-path {{.AgentWorkingDir}}/build/qt_temp --base-url {{.Env.QTC_QT_BASE_URL}} --base-url-postfix=-Linux-CentOS_8_3-GCC-Linux-CentOS_8_3-X86_64.7z --icu7z http://master.qt.io/development_releases/prebuilt/icu/prebuilt/56.1/icu-linux-g++-Rhel7.2-x64.7z {{.Env.QTC_QT_MODULES}}"
|
||||
command: "python -u {{.AgentWorkingDir}}/build/qtsdk/packaging-tools/install_qt.py --qt-path {{.AgentWorkingDir}}/build/qt5_install_dir --temp-path {{.AgentWorkingDir}}/build/qt_temp --base-url {{.Env.QTC_QT_BASE_URL}} --base-url-postfix=-Linux-RHEL_8_2-GCC-Linux-RHEL_8_2-X86_64.7z --icu7z http://master.qt.io/development_releases/prebuilt/icu/prebuilt/56.1/icu-linux-g++-Rhel7.2-x64.7z {{.Env.QTC_QT_MODULES}}"
|
||||
executeCommandArgumentSplitingBehavior: SplitAfterVariableSubstitution
|
||||
maxTimeInSeconds: 3600
|
||||
maxTimeBetweenOutput: 360
|
||||
@@ -42,7 +42,7 @@ instructions:
|
||||
property: host.os
|
||||
equals_value: Linux
|
||||
- type: ExecuteCommand
|
||||
command: "python -u {{.AgentWorkingDir}}/build/qtsdk/packaging-tools/install_qt.py --qt-path {{.AgentWorkingDir}}/build/qt5_install_dir --temp-path {{.AgentWorkingDir}}/build/qt_temp --base-url {{.Env.QTC_QT_BASE_URL}} --base-url-postfix=-MacOS-MacOS_11_00-Clang-MacOS-MacOS_11_00-X86_64.7z {{.Env.QTC_QT_MODULES}}"
|
||||
command: "python -u {{.AgentWorkingDir}}/build/qtsdk/packaging-tools/install_qt.py --qt-path {{.AgentWorkingDir}}/build/qt5_install_dir --temp-path {{.AgentWorkingDir}}/build/qt_temp --base-url {{.Env.QTC_QT_BASE_URL}} --base-url-postfix=-MacOS-MacOS_11_00-Clang-MacOS-MacOS_11_00-X86_64-ARM64.7z {{.Env.QTC_QT_MODULES}}"
|
||||
executeCommandArgumentSplitingBehavior: SplitAfterVariableSubstitution
|
||||
maxTimeInSeconds: 3600
|
||||
maxTimeBetweenOutput: 360
|
||||
|
Before Width: | Height: | Size: 671 B After Width: | Height: | Size: 289 B |
Before Width: | Height: | Size: 573 B After Width: | Height: | Size: 252 B |
BIN
doc/qtcreator/images/icons/alias.png
Normal file
After Width: | Height: | Size: 295 B |
Before Width: | Height: | Size: 545 B After Width: | Height: | Size: 243 B |
Before Width: | Height: | Size: 45 KiB After Width: | Height: | Size: 37 KiB |
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 27 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 4.0 KiB |
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 10 KiB |
BIN
doc/qtcreator/images/qtquick-designer-text-edit-properties.png
Normal file
After Width: | Height: | Size: 19 KiB |
Before Width: | Height: | Size: 29 KiB After Width: | Height: | Size: 22 KiB |
Before Width: | Height: | Size: 58 KiB After Width: | Height: | Size: 17 KiB |
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 5.4 KiB |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
BIN
doc/qtcreator/images/qtquick-properties-2D-geometry.png
Normal file
After Width: | Height: | Size: 8.8 KiB |
BIN
doc/qtcreator/images/qtquick-properties-advanced.png
Normal file
After Width: | Height: | Size: 7.3 KiB |
BIN
doc/qtcreator/images/qtquick-properties-font-extras.png
Normal file
After Width: | Height: | Size: 12 KiB |
BIN
doc/qtcreator/images/qtquick-properties-text-extras.png
Normal file
After Width: | Height: | Size: 16 KiB |
BIN
doc/qtcreator/images/qtquick-properties-text-field.png
Normal file
After Width: | Height: | Size: 5.1 KiB |
BIN
doc/qtcreator/images/qtquick-properties-text-padding.png
Normal file
After Width: | Height: | Size: 4.4 KiB |
BIN
doc/qtcreator/images/qtquick-properties-visibility.png
Normal file
After Width: | Height: | Size: 5.8 KiB |
@@ -114,7 +114,7 @@
|
||||
|
||||
\image qtquick-mobile-app-tutorial-image.png "Image file in different views"
|
||||
|
||||
\li Select the \inlineimage export_unchecked.png
|
||||
\li Select the \inlineimage icons/alias.png
|
||||
(\uicontrol Export) button in \uicontrol Navigator to export
|
||||
\e mainWindow and \e bubble as properties.
|
||||
|
||||
|
@@ -135,7 +135,7 @@
|
||||
\uicontrol {Alignment H} and \uicontrol {Alignment V}
|
||||
fields. By default, images are centered.
|
||||
|
||||
Select the \uicontrol Mirrored check box to horizontally invert the image,
|
||||
Select the \uicontrol Mirror check box to horizontally invert the image,
|
||||
effectively displaying a mirrored image.
|
||||
|
||||
\section1 Performance
|
||||
|
@@ -54,7 +54,7 @@
|
||||
{Item} component. Even though it has no visual appearance itself (similarly
|
||||
to a mouse area, for example), it defines all the properties that are
|
||||
common across visual components, such as position, size, and visibility. For
|
||||
more information, see \l{Specifying Basic Component Properties}.
|
||||
more information, see \l{Basic Component Properties}.
|
||||
|
||||
In addition, each component has a set of properties that specify its visual
|
||||
appearance and behavior. You can modify the property values to set fill
|
||||
@@ -75,15 +75,15 @@
|
||||
\endif
|
||||
|
||||
Rectangles can be filled either with a solid fill color or a linear
|
||||
gradient that you set in the \uicontrol Color field. You can
|
||||
gradient that you set in the \uicontrol {Fill color} field. You can
|
||||
also use a \l{Picking Colors}{color picker} to select colors and a
|
||||
\l{Picking Gradients}{gradient picker} to select gradients from a
|
||||
predefined set of \l{https://webgradients.com/}{WebGradients}.
|
||||
|
||||
An optional solid border can be added to a rectangle with its own color
|
||||
and thickness by setting the values of the \uicontrol {Border Color} and
|
||||
\uicontrol Border fields. To create a border without a fill color, select
|
||||
the \inlineimage icons/transparent-icon.png
|
||||
and thickness by setting the values of the \uicontrol {Border color} and
|
||||
\uicontrol {Border width} fields. To create a border without a fill color,
|
||||
select the \inlineimage icons/transparent-icon.png
|
||||
button that sets the color to \e transparent.
|
||||
|
||||
By setting the value of the \uicontrol Radius field, you can create shapes
|
||||
@@ -93,53 +93,55 @@
|
||||
with all four sides equal, and then set its radius to half the side length.
|
||||
|
||||
When drawing curved edges, consider enabling the \uicontrol Antialiasing
|
||||
check box in the \uicontrol Advanced tab of the \uicontrol Properties view
|
||||
to improve the appearance of your shape.
|
||||
check box in the \uicontrol Advanced section to improve the appearance of
|
||||
your shape.
|
||||
|
||||
\if defined(qtdesignstudio)
|
||||
\target studio-rectangle
|
||||
\section2 Studio Rectangle
|
||||
|
||||
If you want to modify each corner of the rectangle independently
|
||||
or use a dashed border, create an instance of \uicontrol Library
|
||||
> \uicontrol Components > \uicontrol {Qt Quick Studio Components}
|
||||
> \uicontrol Rectangle instead of the basic rectangle component.
|
||||
or use a dashed border, create an instance of the \uicontrol Rectangle
|
||||
component available in \uicontrol Library > \uicontrol Components >
|
||||
\uicontrol {Qt Quick Studio Components} instead of the basic
|
||||
\uicontrol Rectangle component available in \uicontrol {Default Components}
|
||||
> \uicontrol Basic.
|
||||
|
||||
By setting the values of properties in the \uicontrol {Corner Radiuses}
|
||||
group, you can draw each corner independently. By using radius values
|
||||
in combination with the values in the \uicontrol {Corner Bevel} group,
|
||||
section, you can draw each corner independently. By using radius values
|
||||
in combination with the values in the \uicontrol {Corner Bevel} section,
|
||||
you can create shapes with cut corners.
|
||||
|
||||
\image studio-shapes-rectangle.png "A studio rectangle with cut corners"
|
||||
|
||||
In addition to linear gradients, you can specify conical and radial
|
||||
gradients in the \uicontrol {Fill Color} field.
|
||||
gradients in the \uicontrol {Fill color} field.
|
||||
|
||||
In the \uicontrol {Stroke Details} group, you can specify the border
|
||||
In the \uicontrol {Stroke Details} section, you can specify the border
|
||||
mode, line style, and dash pattern for dashed and dotted lines.
|
||||
For more information, see \l{Strokes}.
|
||||
|
||||
\section1 Border
|
||||
|
||||
The Border component is used to create borders out of four segments:
|
||||
left, top, right, and bottom. By selecting the \uicontrol {Draw top},
|
||||
\uicontrol {Draw right}, \uicontrol {Draw bottom}, and
|
||||
\uicontrol {Draw left} check boxes, you can determine whether each
|
||||
left, top, right, and bottom. By selecting the check boxes in the
|
||||
\uicontrol {Draw Edges} section, you can determine whether each
|
||||
of the segments is visible. This enables you to draw solid or dashed
|
||||
lines with specified dash patterns and joint and cap styles.
|
||||
|
||||
\image studio-shapes-border.png "Border properties"
|
||||
|
||||
Set the color of the border in the \uicontrol {Stroke color} field and its
|
||||
thickness in the \uicontrol {Stroke width} field. Then specify additional
|
||||
properties for borders in the \uicontrol {Stroke Details} section.
|
||||
|
||||
\section2 Strokes
|
||||
|
||||
In the \uicontrol {Stroke Details} group, you can specify the border mode,
|
||||
In the \uicontrol {Stroke Details} section, you can specify the border mode,
|
||||
line style, and dash pattern for dashed and dotted lines.
|
||||
|
||||
\image studio-shapes-stroke-properties.png "Stroke properties"
|
||||
|
||||
In the \uicontrol {Stroke width} field, you can set the thickness of the
|
||||
line.
|
||||
|
||||
In the \uicontrol {Border mode} field, you can specify whether the border
|
||||
is drawn along the inside or outside edge of the component, or on top of the
|
||||
edge.
|
||||
@@ -159,10 +161,10 @@
|
||||
the stroke to be drawn first, and values of the offset between 4.0 and 6.0
|
||||
will cause the line to begin with part of the gap.
|
||||
|
||||
In the \uicontrol {Joint style} field, select \uicontrol {Miter join} to
|
||||
In the \uicontrol {Join style} field, select \uicontrol {Miter Join} to
|
||||
extend the outer edges of the lines to meet at an angle and to fill the
|
||||
area between them. Select \uicontrol {Bevel join} to fill the triangular
|
||||
notch between the two lines. Select \uicontrol {Round join} to fill a
|
||||
area between them. Select \uicontrol {Bevel Join} to fill the triangular
|
||||
notch between the two lines. Select \uicontrol {Round Join} to fill a
|
||||
circular arc between the two lines.
|
||||
|
||||
The value of the \uicontrol {Cap style} property specifies whether line
|
||||
@@ -173,20 +175,21 @@
|
||||
The Triangle component can be used to draw triangles with different dimensions
|
||||
and shapes. The component is enclosed in an invisible rectangle that determines
|
||||
its size. The dimensions of the triangle can be changed to make it elongated
|
||||
or squatter with space around it by setting the left, right, top, and bottom
|
||||
margins in the \uicontrol Margins group. The margins are set between the
|
||||
or squatter with space around it by setting the top, bottom, left, and right
|
||||
margins in the \uicontrol Margin section. The margins are set between the
|
||||
triangle and the edges of the parent rectangle.
|
||||
|
||||
\image studio-shapes-triangle.png "Triangle properties"
|
||||
|
||||
The fill color property values are set in the same way as for a rectangle.
|
||||
The border property values are described in \l{Strokes}.
|
||||
The fill and stroke color property values are set in the same way as for a
|
||||
rectangle. The border property values are described in \l{Strokes}.
|
||||
|
||||
\section1 Arc
|
||||
|
||||
An arc is specified by setting values in degrees in the \uicontrol Begin and
|
||||
\uicontrol End fields. The arc can be just a line or a filled outline.
|
||||
The properties of the line or outline are described in \l{Strokes}.
|
||||
An arc is specified by setting values in degrees in the
|
||||
\uicontrol {Arc start} and \uicontrol {Arc end} fields.
|
||||
The arc can be just a line or a filled outline. The
|
||||
properties of the line or outline are described in \l{Strokes}.
|
||||
|
||||
\image studio-shapes-arc.png "Arc properties"
|
||||
|
||||
@@ -196,46 +199,48 @@
|
||||
\image studio-shapes-arc-outline-properties.png "Arc Outline Properties"
|
||||
|
||||
To create an arc with an outline, select the \uicontrol {Full outline}
|
||||
check box. The \uicontrol {Arc outline width} field sets the width of
|
||||
the arc outline, including the stroke. The \uicontrol {Arc outline begin}
|
||||
and \uicontrol {Arc outline end} fields set the width of the start and
|
||||
check box. The \uicontrol {Outline width} field sets the width of
|
||||
the arc outline, including the stroke. The \uicontrol {Outline start}
|
||||
and \uicontrol {Outline end} fields set the width of the start and
|
||||
end points of the outline separately. The width of the outline between
|
||||
them is calculated automatically. You can adjust the inner and outer
|
||||
curves of the outline in the \uicontrol {Radius inner adjust} and
|
||||
\uicontrol {Radius outer adjust} fields.
|
||||
curves of the outline in the \uicontrol {Inner radius} and
|
||||
\uicontrol {Outer radius} fields.
|
||||
|
||||
The \uicontrol {Round outline}, \uicontrol {Round begin outline}, and
|
||||
\uicontrol {Round end outline} properties specify whether the end points
|
||||
of the arc outline have rounded caps. For an arc that does not have an
|
||||
outline, the \uicontrol {Cap style} property specifies whether the line
|
||||
ends are square or rounded.
|
||||
The \uicontrol {Round outline}, \uicontrol {Round start}, and
|
||||
\uicontrol {Round end} properties specify whether the end points of the
|
||||
arc outline have rounded caps. For an arc that does not have an outline,
|
||||
the \uicontrol {Cap style} field in the \uicontrol {Stroke Details}
|
||||
section specifies whether the line ends are square or rounded.
|
||||
|
||||
\section1 Pie
|
||||
|
||||
The Pie component is used to create a pie slice, a pie that is missing slices,
|
||||
or just the pie rind (similar to an arc), depending on the values of the
|
||||
\uicontrol Begin, \uicontrol End, and \uicontrol {Hide line} properties.
|
||||
\uicontrol {Pie start} and \uicontrol {Pie end} fields and the
|
||||
\uicontrol Hide check box.
|
||||
|
||||
\image studio-shapes-pie.png "Pie properties"
|
||||
|
||||
The filling of the pie is painted using either a solid fill color or a
|
||||
gradient. The fill color property values are set in the same way as for
|
||||
a rectangle. The border property values are described in \l{Strokes}.
|
||||
gradient. The fill and stroke color property values are set in the same
|
||||
way as for a rectangle. The border property values are described in
|
||||
\l{Strokes}.
|
||||
|
||||
\section1 Flipable
|
||||
|
||||
A Flipable component can be visibly \e flipped between its front and back
|
||||
sides, like a card. The front and back sides are specified by using any
|
||||
two components inside the Flipable component. The component with the
|
||||
higher z-order is the front side. The \uicontrol {Opacity front} and
|
||||
\uicontrol {Opacity back} properties are used to hide and show either the
|
||||
front or back side of the item at a time.
|
||||
higher z-order is the front side. The \uicontrol Front and \uicontrol Back
|
||||
fields in the \uicontrol Opacity section are used to hide and show either
|
||||
the front or back side of the item at a time.
|
||||
|
||||
\image studio-flipable.png
|
||||
|
||||
The \uicontrol {Flip angle} property is used to animate the angle
|
||||
of the component to produce the flipping effect. The value of the
|
||||
\uicontrol {Rotation axis} property determine whether the component
|
||||
\uicontrol {Rotational axis} property determine whether the component
|
||||
is rotated around the x-axis or the y-axis.
|
||||
|
||||
\section1 Summary of Shapes
|
||||
|
@@ -32,9 +32,9 @@
|
||||
|
||||
You can use several different text components to add read-only or editable
|
||||
text to a UI, such as titles or labels and text input fields with
|
||||
placeholder text. The \l Text component adds formatted text, the \l TextEdit
|
||||
component adds a multiline line edit, and the \l TextInput component adds a
|
||||
single editable line field.
|
||||
placeholder text. The \uicontrol Text component adds formatted text, the
|
||||
\uicontrol {Text Edit} component adds a multiline line edit, and the
|
||||
\uicontrol {Text Input} component adds a single editable line field.
|
||||
|
||||
You can select the font to use and specify extensive properties for each
|
||||
text string, such as size in points or pixels, style name, emphasis,
|
||||
@@ -44,15 +44,19 @@
|
||||
|
||||
\youtube yOUdg1o2KJM
|
||||
|
||||
To create a label with a background, use the \l Label component from the
|
||||
Qt Quick Controls module.
|
||||
To create a label with a background, use the \uicontrol Label
|
||||
component available in \l Library > \uicontrol Components >
|
||||
\uicontrol {Qt Quick Controls}. The module also contains components
|
||||
for creating \uicontrol {Text Field} and \uicontrol {Text Area} controls.
|
||||
They differ from the basic components in that a common style is applied
|
||||
to them and that you can specify placeholder text for them.
|
||||
|
||||
\section1 Using Rich Text
|
||||
|
||||
You can use rich text in the \l Text and \l TextInput components. To
|
||||
open the rich text editor, select the \inlineimage icons/edit.png
|
||||
(\uicontrol Edit) button next to the \uicontrol Text field in
|
||||
\uicontrol Properties.
|
||||
You can use rich text in the \uicontrol Text and \uicontrol {Text Input}
|
||||
components. To open the rich text editor, select the \inlineimage icons/edit.png
|
||||
(\uicontrol Edit) button in \uicontrol Properties > \uicontrol Character
|
||||
> \uicontrol Text.
|
||||
|
||||
\image qtquick-text-rtf.gif "Editing text in the rich text editor"
|
||||
|
||||
@@ -71,15 +75,48 @@
|
||||
|
||||
\image qtquick-rtf-editor.png "Text formatted as rich text in the editor"
|
||||
|
||||
\section1 Typography
|
||||
\section1 Marking Strings for Translation
|
||||
|
||||
For each string that you enter in the \uicontrol Text field, you can
|
||||
select the font to use in the \uicontrol Font field and specify the
|
||||
size, emphasis, aligment, and spacing of the text. Specify the font
|
||||
size in either points or pixels in the \uicontrol Size field.
|
||||
To support translators, mark the strings that should be translated.
|
||||
In \uicontrol Properties > \uicontrol Character > \uicontrol Text, select
|
||||
\uicontrol tr.
|
||||
|
||||
\image qtquick-designer-text-properties.png "Text component general properties"
|
||||
\image qtquick-designer-properties-font.png "Text component font properties"
|
||||
\image qmldesigner-text-property-tr.png "tr button in Character section"
|
||||
|
||||
By default, the text string is enclosed in a \c qsTr() call.
|
||||
|
||||
\image qml-translate.png "Text marked for translation"
|
||||
|
||||
If you use text IDs instead of plain text, change the default call to
|
||||
\c qsTrId(). Select \uicontrol Tools > \uicontrol Options >
|
||||
\uicontrol {Qt Quick} > \uicontrol {Qt Quick Designer}, and then select the
|
||||
\uicontrol {qsTrId()} radio button in the \uicontrol Internationalization
|
||||
group. For more information about text ID based translations, see
|
||||
\l {Qt Linguist Manual: Text ID Based Translations}.
|
||||
|
||||
To preserve the context when editing the text or to change the context
|
||||
by setting a binding on the text property, change the default call to
|
||||
\c qsTranslate() by selecting the \uicontrol {qsTranslate()} radio button.
|
||||
|
||||
For more information, see
|
||||
\l {Internationalization and Localization with Qt Quick}.
|
||||
|
||||
\if defined(qtcreator)
|
||||
When you \l{Creating Qt Quick Projects}{create a new project}, you can
|
||||
automatically generate a translation source file (TS) for one language.
|
||||
You can add other languages later by editing the project file.
|
||||
\endif
|
||||
|
||||
\section1 Character Properties
|
||||
|
||||
You can set font properties in the \uicontrol Character section
|
||||
in \uicontrol Properties. For each string that you enter in the
|
||||
\uicontrol Text field, you can select the font to use in the
|
||||
\uicontrol Font field and specify the size, emphasis, aligment,
|
||||
and spacing of the text. Specify the font size in either points
|
||||
or pixels in the \uicontrol Size field.
|
||||
|
||||
\image qtquick-designer-text-properties.png "Character properties"
|
||||
|
||||
To display custom fonts in the list of available fonts in the
|
||||
\uicontrol Font field, you need to first add them to \l Library:
|
||||
@@ -94,23 +131,27 @@
|
||||
\li Select \uicontrol OK.
|
||||
\endlist
|
||||
|
||||
You can use the buttons in the \uicontrol {Font style} group to emphasize
|
||||
In the \uicontrol Weight field, you can select the font weight from a
|
||||
list of predefined values that range between extra-light and extra-bold.
|
||||
You can also use the buttons in the \uicontrol Emphasis group to format
|
||||
text by making it bold, italic, underlined, or strikethrough.
|
||||
|
||||
Alternatively, select a font variant to use in the \uicontrol {Style name}
|
||||
field, such as \uicontrol Regular or \uicontrol Bold.
|
||||
If you set a style name in the \uicontrol {Style name} field, the font is
|
||||
matched against the style name instead of the values set in the
|
||||
\uicontrol Weight and \uicontrol Emphasis fields.
|
||||
|
||||
The value of the \uicontrol Word field in the \uicontrol Spacing group
|
||||
changes the default spacing between individual words, whereas the value
|
||||
of the \uicontrol Letter field changes the spacing between individual
|
||||
The value of the \uicontrol {Word spacing} field changes the default
|
||||
spacing between individual words, whereas the value of the
|
||||
\uicontrol {Letter spacing} field changes the spacing between individual
|
||||
letters in a word. A positive value increases the spacing by a
|
||||
corresponding amount of pixels, while a negative value decreases it.
|
||||
|
||||
The value of the \uicontrol {Line height} field sets the line height
|
||||
for the text. In the \uicontrol {Line height mode} field, select
|
||||
\uicontrol FixedHeight to set the line height in pixels or
|
||||
\uicontrol ProportionalHeight (default) to set the spacing proportionally
|
||||
to the line (as a multiplier). For example, set to 2 for double spacing.
|
||||
for the text. In the \uicontrol {Line height mode} field in the
|
||||
\uicontrol {Text Extras} section, select \uicontrol FixedHeight to set
|
||||
the line height in pixels or \uicontrol ProportionalHeight (default)
|
||||
to set the spacing proportionally to the line (as a multiplier).
|
||||
For example, set to 2 for double spacing.
|
||||
|
||||
\section1 Text Alignment
|
||||
|
||||
@@ -134,16 +175,14 @@
|
||||
You can set the color of the text itself and a secondary color used by
|
||||
text styles.
|
||||
|
||||
The color that you pick in the \uicontrol {Style color} field is used as
|
||||
the outline color for outlined text, and as the shadow color for raised
|
||||
or sunken text. You set the font style in the \uicontrol Style field of
|
||||
the \uicontrol Font section.
|
||||
|
||||
For the \uicontrol {Text Edit} and \uicontrol {Text Input} components, you
|
||||
can also set the color of selected text and the text highlight color
|
||||
that is used behind selections in the \uicontrol {Selected text color}
|
||||
and \uicontrol {Selection color} fields.
|
||||
|
||||
For the \uicontrol {Text Field} and \uicontrol {Text Area} controls, you
|
||||
can also set the color of the \l{Placeholder Text}{placeholder text}.
|
||||
|
||||
For more information about selecting colors, see \l{Picking Colors}. You
|
||||
can only set solid colors for text components.
|
||||
|
||||
@@ -152,18 +191,25 @@
|
||||
The height and width of a text component are determined automatically depending
|
||||
on the values of the properties you set, to accommodate the length of the
|
||||
string that you specify in the \uicontrol Text field and the font size, for
|
||||
example.
|
||||
example. You can specify additional properties for formatting text in the
|
||||
\uicontrol {Text Extras} section.
|
||||
|
||||
\image qtquick-properties-text-extras.png "Text Extras section"
|
||||
|
||||
The value of the \uicontrol {Size mode} field specifies how the font
|
||||
size of the displayed text is determined. Select \uicontrol FixedSize
|
||||
to use the size specified in the \uicontrol Size field in the
|
||||
\uicontrol Character section in pixels or points.
|
||||
|
||||
The value of the \uicontrol {Font size mode} field specifies how the font
|
||||
size of the displayed text is determined. Select \uicontrol FixedSize to
|
||||
use the size specified in the \uicontrol Size field in pixels or points.
|
||||
Select \uicontrol HorizontalFit or \uicontrol VerticalFit to use the largest
|
||||
size up to the size specified that fits the width or height of the component.
|
||||
Select \uicontrol Fit to use the largest size up to the size specified that
|
||||
fits within the width and height of the component. The font size of fitted text
|
||||
has a minimum bound specified by the \uicontrol {Minimum size} field and
|
||||
has a minimum bound specified by the \uicontrol {Min size} field and
|
||||
maximum bound specified by the \uicontrol Size field.
|
||||
|
||||
\section3 Wrapping and Eliding Text
|
||||
|
||||
In the \uicontrol {Wrap mode} field, you can wrap the text to the text
|
||||
component's width. The text will only wrap if you set an explicit width for
|
||||
the text component. By default, text is not wrapped. Select \uicontrol WordWrap
|
||||
@@ -174,7 +220,7 @@
|
||||
|
||||
You can use the \uicontrol Elide property with the \uicontrol Wrap
|
||||
option to fit a single line of plain text to a set width. Select
|
||||
\uicontrol ElideRight, and set the \uicontrol {Maximum line count}
|
||||
\uicontrol ElideRight, and set the \uicontrol {Max line count}
|
||||
or the text component height (in the \uicontrol H field). If you set both,
|
||||
the maximum line count will apply unless the lines do not fit in the
|
||||
height allowed.
|
||||
@@ -186,18 +232,7 @@
|
||||
Multi-length strings are ordered from longest to shortest, separated by the
|
||||
Unicode \e {String Terminator} character \c U009C.
|
||||
|
||||
\section1 Advanced Font Properties
|
||||
|
||||
In the \uicontrol {Font weight} field, you can select the font weight from
|
||||
list predefined values that range between extra-light and extra-bold.
|
||||
|
||||
In the \uicontrol {Font capitalization} field, select \uicontrol MixedCase
|
||||
for normal text rendering where no capitalization changes are applied. You
|
||||
can also set the text in all upper or lower case, or use small caps. The
|
||||
\uicontrol Capitalize option renders the first character of each word as an
|
||||
uppercase character.
|
||||
|
||||
\section1 Developer Text Properties
|
||||
\section3 Formatting Text
|
||||
|
||||
Text can be either in plain text or rich text format, depending on the
|
||||
value you set in the \uicontrol Format field. If you select
|
||||
@@ -206,6 +241,8 @@
|
||||
described on the \l {Supported HTML Subset}. Note that plain text offers
|
||||
better performance than rich text.
|
||||
|
||||
\section3 Rendering Text
|
||||
|
||||
In the \uicontrol {Render type} field, you can override the default
|
||||
rendering type for a text component. Select \uicontrol NativeRendering if
|
||||
you prefer text to look native on the target platform and do not
|
||||
@@ -213,20 +250,69 @@
|
||||
{transformation} of the text. Using rotation or scaling in combination
|
||||
with native rendering leads to poor and sometimes pixelated results.
|
||||
|
||||
If you select \uicontrol NativeRendering, you can set the hinting preference
|
||||
in the \uicontrol Hinting field in the \uicontrol {Font Extras} section:
|
||||
|
||||
\list
|
||||
\li \uicontrol PreferDefaultHinting uses the default hinting level for
|
||||
the target platform.
|
||||
\li \uicontrol PreferNoHinting renders text without hinting the outlines
|
||||
of the glyphs, if possible.
|
||||
\li \uicontrol PreferVerticalHinting renders text with no horizontal
|
||||
hinting, but aligns glyphs to the pixel grid in the vertical
|
||||
direction, if possible.
|
||||
\li \uicontrol PreferFullHinting renders text with hinting in both
|
||||
horizontal and vertical directions.
|
||||
\endlist
|
||||
|
||||
\note This property only describes a preference, as the full range of
|
||||
hinting levels are not supported on all of Qt's supported platforms.
|
||||
|
||||
\section1 Advanced Font Properties
|
||||
|
||||
You can specify additional properties for fonts in the
|
||||
\uicontrol {Font Extras} section.
|
||||
|
||||
\image qtquick-properties-font-extras.png "Font Extras section"
|
||||
|
||||
In the \uicontrol Capitalization field, select \uicontrol MixedCase
|
||||
for normal text rendering where no capitalization changes are applied. You
|
||||
can also set the text in all upper or lower case, or use small caps. The
|
||||
\uicontrol Capitalize option renders the first character of each word as an
|
||||
uppercase character.
|
||||
|
||||
You can set the font style in the \uicontrol Style field to
|
||||
\uicontrol Outline, \uicontrol Raised, or \uicontrol Sunken.
|
||||
The color that you pick in the \uicontrol {Style color}
|
||||
field is used as the outline color for outlined text, and as
|
||||
the shadow color for raised or sunken text.
|
||||
|
||||
To use kerning when drawing text with the selected font, select the
|
||||
\uicontrol {Auto kerning} check box.
|
||||
|
||||
Sometimes, a font will apply complex rules to a set of characters in order
|
||||
to display them correctly. In some writing systems, such as Brahmic scripts,
|
||||
this is required in order for the text to be legible but in others, such
|
||||
as Latin script, it is merely a cosmetic feature. Such features are disabled
|
||||
by default to improve performance. If they are required, select the
|
||||
\uicontrol {Prefer shaping} check box.
|
||||
|
||||
\target text-edit
|
||||
\section1 Text Input
|
||||
|
||||
You can use the \uicontrol {Text Edit} and \uicontrol {Text Input}
|
||||
components to add text fields where users can enter text.
|
||||
|
||||
The Text Input component displays a single line of editable plain text,
|
||||
whereas the Text Edit component displays a block of editable, formatted
|
||||
text. Both components are used to accept text input.
|
||||
The \uicontrol {Text Input} component displays a single line of editable
|
||||
plain text, whereas the \uicontrol {Text Edit} component displays a block
|
||||
of editable, formatted text. Both components are used to accept text input.
|
||||
|
||||
\image qtquick-designer-text-input-properties.png "Text input field properties"
|
||||
|
||||
In the \uicontrol {Mouse selection mode} field, you can specify whether
|
||||
individual characters or whole words are selected when selecting text.
|
||||
\section2 Entering Passwords
|
||||
|
||||
You can set properties for \uicontrol {Text Input} components that make
|
||||
them suitable for entering passwords.
|
||||
|
||||
In the \uicontrol {Input mask} field, you can create an input mask that
|
||||
contains mask and meta characters and separators between them. When created
|
||||
@@ -241,14 +327,18 @@
|
||||
platform-dependent password mask characters instead of the actual characters
|
||||
that users enter. Select \uicontrol PasswordEchoOnEdit to display characters
|
||||
as users enter them. The mask character is displayed in the
|
||||
\uicontrol {Pass. char} field.
|
||||
\uicontrol {Password character} field.
|
||||
|
||||
\section2 Entering Text
|
||||
|
||||
You can specify how users can enter text into text edit or input fields.
|
||||
|
||||
In the \uicontrol {Maximum length} field, set the maximum number of
|
||||
characters that users can enter.
|
||||
|
||||
The value of the \uicontrol {Auto scroll} check box determines whether the
|
||||
text edit or input should scroll when the text is longer than the width of
|
||||
the input field.
|
||||
the field.
|
||||
|
||||
If the \uicontrol {Overwrite mode} check box is selected, existing text is
|
||||
overwritten, character-for-character by new text. Otherwise, new text is
|
||||
@@ -258,7 +348,27 @@
|
||||
To prevent users from changing the text, select the \uicontrol {Read only}
|
||||
check box.
|
||||
|
||||
The value of the \uicontrol {Set active focus on press} check box determines
|
||||
\section2 Selecting Text
|
||||
|
||||
In the \uicontrol {Selection mode} field, you can specify whether
|
||||
individual characters or whole words are selected when selecting text
|
||||
with a pointer device.
|
||||
|
||||
Select the \uicontrol {Select by mouse} check box to enable users to
|
||||
use the mouse to select text in some platform-specific way. For some
|
||||
platforms this may not be an appropriate interaction because it may
|
||||
conflict with how the text needs to behave inside a \uicontrol Flickable
|
||||
component, for example.
|
||||
|
||||
For a \uicontrol {Text Edit} component, you can select the
|
||||
\uicontrol {Select by keyboard} check box to enable users to
|
||||
use the keyboard to select text even if the edit field is
|
||||
read-only. If this property is set to \c false, users cannot
|
||||
use the keyboard to select text even if it is editable.
|
||||
|
||||
\section2 Focus
|
||||
|
||||
The value of the \uicontrol {Focus on press} check box determines
|
||||
whether the text edit or input should gain active focus on a mouse press.
|
||||
|
||||
By default, the cursor becomes visible when the text edit or input gains
|
||||
@@ -270,20 +380,44 @@
|
||||
If the \uicontrol {Persistent selection} check box is selected, a text edit
|
||||
or input keeps its selection when active focus moves to another component.
|
||||
|
||||
To use a pointer device for selecting text, select the
|
||||
\uicontrol {Select by mouse} check box.
|
||||
\section2 Tabs and Margins
|
||||
|
||||
You can specify additional properties for formatting a block of text in
|
||||
a \uicontrol {Text Edit} component.
|
||||
|
||||
\image qtquick-designer-text-edit-properties.png "Text edit properties"
|
||||
|
||||
In the \uicontrol {Tab stop distance} field, set the default distance, in
|
||||
device units, between tab stops.
|
||||
|
||||
In the \uicontrol {Text margin} field, set the margin around the text in
|
||||
pixels.
|
||||
|
||||
\section1 Padding
|
||||
|
||||
The values of the properties in the \uicontrol Padding section specify the
|
||||
padding around the content. The individual padding properties adopt the
|
||||
value of the \uicontrol Padding field, unless you set them explicitly.
|
||||
value of the \uicontrol Global field, unless you set them explicitly.
|
||||
|
||||
\image qtquick-properties-text-padding.png "Padding section"
|
||||
|
||||
\note If you explicitly set the width or height of a text edit or input,
|
||||
ensure that it is large enough to accommodate the padding values. If the
|
||||
text does not have enough vertical or horizontal space in which to be
|
||||
rendered, it will appear clipped.
|
||||
|
||||
\section1 Placeholder Text
|
||||
|
||||
For \uicontrol {Text Field} and \uicontrol {Text Area} controls, you can
|
||||
specify text to display in a field before users enter text into it.
|
||||
Specify the text in the \uicontrol {Placeholder text} field and its color
|
||||
in the \uicontrol {Placeholder color} field.
|
||||
|
||||
\image qtquick-properties-text-field.png "Placeholder text settings"
|
||||
|
||||
Select the \uicontrol Hover check box to enable the text field to accept
|
||||
hover events.
|
||||
|
||||
\section1 Summary of Text Components
|
||||
|
||||
The following table lists the components that you can use to add text to
|
||||
|
@@ -96,7 +96,7 @@
|
||||
is ignored.
|
||||
|
||||
A component has focus when the \uicontrol Focus property in the
|
||||
\uicontrol Advanced tab is set to \c true. However, for reusable
|
||||
\uicontrol Advanced section is set to \c true. However, for reusable
|
||||
or imported components, this is not sufficient, and you should use
|
||||
a \uicontrol {Focus Scope} component.
|
||||
|
||||
|
@@ -63,11 +63,13 @@
|
||||
\list 1
|
||||
\li Select the component to annotate in \uicontrol Navigator or in
|
||||
\uicontrol {Form Editor}.
|
||||
\li In \uicontrol Properties, select \uicontrol {Add Annotation}.
|
||||
\li In \uicontrol Properties, select \uicontrol {Add Annotation} to
|
||||
open \uicontrol {Annotation Editor}.
|
||||
\image qtquick-annotation-editor.png "Annotation Editor"
|
||||
\li The \uicontrol {Selected Item} field displays the ID of the
|
||||
component. Enter a name for the annotation in the
|
||||
\uicontrol {Custom ID} field.
|
||||
component.
|
||||
\li In the the \uicontrol Name field, enter a free-form text that
|
||||
describes the component.
|
||||
\li In the \uicontrol Title field, enter the text to display in
|
||||
the tab for this comment.
|
||||
\li In the \uicontrol Author field, enter the author's name.
|
||||
@@ -82,6 +84,8 @@
|
||||
(\uicontrol {Remove Comment}) button. To remove the annotation, right-click
|
||||
the annotation icon, and then select \uicontrol {Remove Annotation}.
|
||||
|
||||
To view the annotations in table format, select \uicontrol {Table view}.
|
||||
|
||||
To edit annotations, select \uicontrol {Edit Annotation} in the context
|
||||
menu of the component.
|
||||
*/
|
||||
|
@@ -250,7 +250,7 @@
|
||||
\image qmldesigner-borderimage-bindings.png "Active state when condition"
|
||||
\li Select the text component in \uicontrol Navigator to specify that the
|
||||
text size is scaled up when the button is pressed down.
|
||||
\li In \uicontrol Properties, select the \uicontrol Advanced tab, and
|
||||
\li In \uicontrol Properties, select the \uicontrol Advanced section, and
|
||||
increase the value of the \uicontrol Scale property.
|
||||
\li Select \e inactiveButton in \uicontrol Navigator to hide
|
||||
it in the \e active state by changing the value of its
|
||||
|
@@ -175,6 +175,14 @@
|
||||
git clone "https://codereview.qt-project.org/qt/qtquicktimeline"
|
||||
\endcode
|
||||
|
||||
To use qmake, you need to check out a branch or tag that contains the
|
||||
qmake configuration files.
|
||||
|
||||
For example:
|
||||
\badcode
|
||||
git checkout v5.15.2
|
||||
\endcode
|
||||
|
||||
Then build the module and add it to your Qt as described in the previous
|
||||
section.
|
||||
*/
|
||||
|
@@ -90,7 +90,7 @@
|
||||
\li Shows and hides invisible components in \uicontrol Navigator.
|
||||
\li \l{Showing and Hiding Components}
|
||||
\row
|
||||
\li \inlineimage export_unchecked.png
|
||||
\li \inlineimage icons/alias.png
|
||||
\li Adds a property alias that you can use from outside of the
|
||||
component.
|
||||
\li \l{Adding Property Aliases}
|
||||
@@ -227,7 +227,7 @@
|
||||
below the third level.
|
||||
\endlist
|
||||
|
||||
You can use the \inlineimage export_unchecked.png
|
||||
You can use the \inlineimage icons/alias.png
|
||||
(\uicontrol Export) button in \uicontrol Navigator to export
|
||||
a component as a property alias with a valid alias reference.
|
||||
|
||||
|
@@ -33,7 +33,7 @@
|
||||
The \uicontrol Properties view displays all the properties of the selected
|
||||
\l{glossary-component}{component}. The properties are grouped by type. The
|
||||
top part of the view displays properties that are common to all components,
|
||||
such as type name, ID, position, size, and visibility.
|
||||
such as component type, ID, name, geometry, and visibility.
|
||||
|
||||
\image qtquick-item-properties-common.png "Basic component properties"
|
||||
|
||||
@@ -54,7 +54,7 @@
|
||||
\li Tooltip
|
||||
\li Read More
|
||||
\row
|
||||
\li \inlineimage export_unchecked.png
|
||||
\li \inlineimage icons/alias.png
|
||||
\li Adds a property alias that you can use from outside of the
|
||||
component for the root component. You can use a menu item
|
||||
in the actions menu to add property aliases for property
|
||||
@@ -99,7 +99,7 @@
|
||||
the current state and which values are derived from the base state.
|
||||
|
||||
The following images illustrate this. In the base state, the
|
||||
\uicontrol Position (1) and \uicontrol Size (2) values are explicitly set
|
||||
\uicontrol Position and \uicontrol Size values are explicitly set
|
||||
and highlighted.
|
||||
|
||||
\image qmldesigner-properties-explicit-base.png "Explicitly set properties"
|
||||
@@ -141,7 +141,8 @@
|
||||
\section1 Multiselection
|
||||
|
||||
To modify the values of common properties of multiple components
|
||||
simultaneously, select the components in \l Navigator or \l {Form Editor}:
|
||||
simultaneously, select the components in \l Navigator, \l {Form Editor}
|
||||
or \uicontrol {3D Editor}:
|
||||
|
||||
\list
|
||||
\li On Windows, press and hold \key Ctrl and \key Shift, and then click
|
||||
@@ -158,7 +159,7 @@
|
||||
\list
|
||||
\li For information about setting common component properties, see
|
||||
\l{Specifying Component Properties}.
|
||||
\li For more information on the properties available for a
|
||||
\li For more information about the properties available for a
|
||||
component, press \key {F1} or see \l{Component Types}
|
||||
and \l{Scalable Layouts}.
|
||||
\endlist
|
||||
|
@@ -34,7 +34,7 @@
|
||||
\l{glossary-component}{component}.
|
||||
|
||||
\target basic-item
|
||||
\section1 Specifying Basic Component Properties
|
||||
\section1 Basic Component Properties
|
||||
|
||||
All components share a set of properties that you can specify in the
|
||||
\uicontrol Properties view.
|
||||
@@ -43,7 +43,7 @@
|
||||
|
||||
\section2 Type
|
||||
|
||||
When you create a component using a \l{Component Types}{preset component},
|
||||
When you create an instance of a \l{Component Types}{preset component},
|
||||
it has all the properties of the preset you used. If you realize later that
|
||||
another preset component with another set of default properties would be
|
||||
more suitable for your purposes, you can change the component type by
|
||||
@@ -68,10 +68,23 @@
|
||||
|
||||
For more technical information about IDs, see \l{The id Attribute}.
|
||||
|
||||
The value of the \uicontrol {Custom ID} field specifies the name of an
|
||||
\l{Annotating Designs}{annotation}.
|
||||
To add a \l{Adding Property Aliases}{property alias} that you can use
|
||||
from outside of the component, select \inlineimage icons/alias.png
|
||||
. You can use a menu item in the \uicontrol Actions menu to add property
|
||||
aliases for property values of child components.
|
||||
|
||||
\section2 2D Geometry
|
||||
\section2 Name
|
||||
|
||||
The value of the \uicontrol {Name} field specifies the component name
|
||||
used in an \l{Annotating Designs}{annotation}. It is a free-form text
|
||||
that descibes the component.
|
||||
|
||||
\section1 2D Geometry
|
||||
|
||||
Set the properties in the \uicontrol {Geometry - 2D} section to determine
|
||||
the position and size of a component.
|
||||
|
||||
\image qtquick-properties-2d-geometry.png "2D Geometry properties"
|
||||
|
||||
In the \uicontrol Position group, you can set the position of a component on
|
||||
the x and y axis. The position of a component in the UI can be either
|
||||
@@ -80,7 +93,7 @@
|
||||
|
||||
In the 2D space, the z position of a component determines its position in
|
||||
relation to its sibling components in the component hierarchy. You can set
|
||||
it in the \uicontrol Z field in the \uicontrol Advanced tab.
|
||||
the z position in the \uicontrol {Z stack} field.
|
||||
|
||||
In the \uicontrol Size group, you can set the width and height of a
|
||||
component. You can also use the resize cursor to \l{Resizing 2D Components}
|
||||
@@ -96,7 +109,7 @@
|
||||
if its final size is determined by property bindings. For more
|
||||
information, see \l {Previewing Component Size}.
|
||||
|
||||
\section3 Resetting Component Position and Size
|
||||
\section2 Resetting Component Position and Size
|
||||
|
||||
To return a component to its default position after moving it,
|
||||
select the \inlineimage qtcreator-reset-position-icon.png
|
||||
@@ -105,20 +118,44 @@
|
||||
\inlineimage qtcreator-reset-size-icon.png
|
||||
(\uicontrol {Reset Size}) button.
|
||||
|
||||
\section2 Visibility
|
||||
\section2 Managing 2D Transformations
|
||||
|
||||
You can use the properties in the \uicontrol Visibility group to show and
|
||||
You can assign any number of transformations, such as rotation and scaling,
|
||||
to a component. Each transformation is applied in order, one at a time.
|
||||
|
||||
In the \uicontrol Origin field, select the origin point for scaling and
|
||||
rotation.
|
||||
|
||||
Set the scale factor in the \uicontrol Scale field. A value of less than
|
||||
1.0 makes the component smaller, whereas a value greater than 1.0 makes
|
||||
it larger. A negative value causes the component to be mirrored in
|
||||
\uicontrol {Form Editor}.
|
||||
|
||||
In the \uicontrol Rotation field, specify the rotation of the component
|
||||
in degrees clockwise around the origin point.
|
||||
|
||||
Alternatively, you can move, resize, or rotate components by dragging them
|
||||
in \l{Form Editor}.
|
||||
|
||||
For more information about transforming 3D components, see
|
||||
\l{Managing 3D Transformations} and \l{3D Editor}.
|
||||
|
||||
\section1 Visibility
|
||||
|
||||
Set the properties in the \uicontrol Visibility section to show and
|
||||
hide components.
|
||||
|
||||
Deselect the \uicontrol {Is visible} check box to hide a component and all
|
||||
\image qtquick-properties-visibility.png "Visibility properties"
|
||||
|
||||
Deselect the \uicontrol Visible check box to hide a component and all
|
||||
its child components, unless they have explicitly been set to be visible.
|
||||
This might have surprise effects when using property bindings. In such
|
||||
cases, it may be better to use the \uicontrol Opacity property instead.
|
||||
|
||||
If this property is disabled, the component will no longer receive
|
||||
\l{Mouse Area}{mouse events} but will continue to receive key events
|
||||
and will retain the keyboard focus events, if it has been set by
|
||||
selecting the \uicontrol Enabled check box in the \uicontrol Advanced tab.
|
||||
\l{Mouse Area}{mouse events}. However, it will continue to receive key
|
||||
events and will retain the keyboard focus events if the \uicontrol Enabled
|
||||
check box in the \uicontrol Advanced section is selected.
|
||||
|
||||
The visibility value is only affected by changes to this property or the
|
||||
parent's visible property. It does not change, for example, if this
|
||||
@@ -138,30 +175,8 @@
|
||||
If the \uicontrol Clip check box is selected, the component and its children
|
||||
are clipped to the bounding rectangle of the component.
|
||||
|
||||
\section1 Managing 2D Transformations
|
||||
|
||||
You can assign any number of transformations, such as rotation and scaling,
|
||||
to a component in the \uicontrol Advanced tab of the \uicontrol Properties
|
||||
view. Each transformation is applied in order, one at a time.
|
||||
|
||||
\image qtquick-item-properties-advanced.png "Advanced component properties"
|
||||
|
||||
In the \uicontrol Origin field, select the origin point for scaling and
|
||||
rotation.
|
||||
|
||||
Set the scale factor in the \uicontrol Scale field. A value of less than
|
||||
1.0 makes the component smaller, whereas a value greater than 1.0 makes
|
||||
it larger. A negative value causes the component to be mirrored in
|
||||
\uicontrol {Form Editor}.
|
||||
|
||||
In the \uicontrol Rotation field, specify the rotation of the component
|
||||
in degrees clockwise around the origin point.
|
||||
|
||||
Alternatively, you can move, resize, or rotate components by dragging them
|
||||
in \l{Form Editor}.
|
||||
|
||||
For more information about transforming 3D components, see
|
||||
\l{Managing 3D Transformations} and \l{3D Editor}.
|
||||
in the \uicontrol State field, select the \l{Adding States}{state} to
|
||||
change the value of a property in that state.
|
||||
|
||||
\section1 Picking Colors
|
||||
|
||||
@@ -261,48 +276,23 @@
|
||||
By default, a linear gradient (4) is used, but you can select another
|
||||
supported gradient type in the \uicontrol Properties view.
|
||||
|
||||
\section1 Marking Text Components for Translation
|
||||
|
||||
To support translators, mark each text component that should be translated.
|
||||
In the \uicontrol Properties view, \uicontrol Text field, select \uicontrol tr (1).
|
||||
|
||||
\image qmldesigner-text-property-tr.png "Text properties"
|
||||
|
||||
By default, the text string is enclosed in a \c qsTr() call.
|
||||
|
||||
\image qml-translate.png "Text marked for translation"
|
||||
|
||||
If you use text IDs instead of plain text, change the default call to
|
||||
\c qsTrId(). Select \uicontrol Tools > \uicontrol Options >
|
||||
\uicontrol {Qt Quick} > \uicontrol {Qt Quick Designer}, and then select the
|
||||
\uicontrol {qsTrId()} radio button in the \uicontrol Internationalization
|
||||
group. For more information about text ID based translations, see
|
||||
\l {Qt Linguist Manual: Text ID Based Translations}.
|
||||
|
||||
To preserve the context when editing the text or to change the context
|
||||
by setting a binding on the text property, change the default call to
|
||||
\c qsTranslate() by selecting the \uicontrol {qsTranslate()} radio button.
|
||||
|
||||
For more information, see
|
||||
\l {Internationalization and Localization with Qt Quick}.
|
||||
|
||||
\if defined(qtcreator)
|
||||
When you \l{Creating Qt Quick Projects}{create a new project}, you can
|
||||
automatically generate a translation source file (TS) for one language.
|
||||
You can add other languages later by editing the project file.
|
||||
\endif
|
||||
|
||||
\section1 Specifying Developer Properties
|
||||
|
||||
In the \uicontrol Advanced tab of the \uicontrol Properties view, you can
|
||||
manage the more advanced properties of components that are based on the
|
||||
\l Item component and that are mostly used by application developers.
|
||||
In the \uicontrol Advanced and \uicontrol Layer sections of the
|
||||
\uicontrol Properties view, you can manage the more advanced
|
||||
properties of components that are inherited from the \l Item
|
||||
component and that are mostly used by application developers.
|
||||
|
||||
\image qtquick-properties-advanced.png "Advanced section in Properties"
|
||||
|
||||
Select the \uicontrol Smooth check box to activate smooth sampling. Smooth
|
||||
sampling is performed using linear interpolation, while non-smooth sampling
|
||||
is performed using the nearest neighbor. Because smooth sampling has minimal
|
||||
impact on performance, it is activated by default.
|
||||
|
||||
Antialiasing is used to make curved lines smoother on the screen. Select
|
||||
the \uicontrol Antialising check box to turn on antialiasing.
|
||||
|
||||
The value of the \uicontrol {Baseline offset} specifies the position of the
|
||||
component's baseline in local coordinates. The baseline of a \l Text
|
||||
component is the imaginary line on which the text sits. Controls containing
|
||||
@@ -316,7 +306,7 @@
|
||||
behavior, unless you explicitly set this value for them.
|
||||
|
||||
You can enable the \uicontrol Focus check box to specify that the component
|
||||
has active focus and the \uicontrol {Active focus on tab} check box to add
|
||||
has active focus and the \uicontrol {Focus on tab} check box to add
|
||||
the component to the \e {tab focus chain}. The tab focus chain traverses
|
||||
components by first visiting the parent, and then its children in the order
|
||||
they are defined. Pressing \key Tab on a component in the tab focus chain
|
||||
@@ -351,7 +341,7 @@
|
||||
|
||||
Components are normally rendered directly into the window they belong to.
|
||||
However, by selecting the \uicontrol Enabled check box in the
|
||||
\uicontrol Layer group, you can delegate the component and its entire subtree
|
||||
\uicontrol Layer section, you can delegate the component and its entire subtree
|
||||
into an offscreen surface. Only the offscreen surface, a texture, will
|
||||
then be drawn into the window. For more information, see \l{Item Layers}.
|
||||
|
||||
@@ -397,9 +387,9 @@
|
||||
The component will use linear interpolation for scaling if the
|
||||
\uicontrol Smooth check box is selected. To use a mipmap for downsampling,
|
||||
select the \uicontrol Mipmap check box. Mipmapping may improve the visual
|
||||
quality of downscaled components. For mipmapping of single Image components,
|
||||
select the \uicontrol Mipmap check box in the \l{Images}{image properties},
|
||||
instead.
|
||||
quality of downscaled components. For mipmapping of single \uicontrol Image
|
||||
components, select the \uicontrol Mipmap check box in the \l{Images}
|
||||
{image properties}, instead.
|
||||
|
||||
To use a texture with a size different from that of the component, specify
|
||||
the width and height of the texture in the \uicontrol {Texture size} field.
|
||||
|
@@ -184,7 +184,7 @@
|
||||
\endcode
|
||||
|
||||
The property alias exports the button to the code that uses the form.
|
||||
You can use the \inlineimage export_unchecked.png
|
||||
You can use the \inlineimage icons/alias.png
|
||||
(\uicontrol Export) button in \l Navigator to export a component
|
||||
as a property:
|
||||
|
||||
|
Before Width: | Height: | Size: 77 KiB After Width: | Height: | Size: 29 KiB |
Before Width: | Height: | Size: 5.1 KiB After Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 31 KiB |
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 41 KiB |
Before Width: | Height: | Size: 6.2 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 18 KiB |
@@ -151,7 +151,7 @@
|
||||
In the \uicontrol Layout tab, you can use \l{Setting Anchors and Margins}
|
||||
{anchors} to position the component.
|
||||
|
||||
In the \uicontrol Advanced tab, you can manage the more
|
||||
In the \uicontrol Advanced section, you can manage the more
|
||||
\l{Specifying Developer Properties}{advanced properties}
|
||||
of components.
|
||||
*/
|
||||
@@ -233,7 +233,7 @@
|
||||
In the \uicontrol Layout tab, you can use \l{Setting Anchors and Margins}
|
||||
{anchors} to position the component.
|
||||
|
||||
In the \uicontrol Advanced tab, you can manage the more
|
||||
In the \uicontrol Advanced section, you can manage the more
|
||||
\l{Specifying Developer Properties}{advanced properties} of components.
|
||||
*/
|
||||
|
||||
@@ -305,7 +305,7 @@
|
||||
In the \uicontrol Layout tab, you can use \l{Setting Anchors and Margins}
|
||||
{anchors} to position the component.
|
||||
|
||||
In the \uicontrol Advanced tab, you can manage the more
|
||||
In the \uicontrol Advanced section, you can manage the more
|
||||
\l{Specifying Developer Properties}{advanced properties} of components.
|
||||
|
||||
\section1 Flow Action Area Properties
|
||||
|
@@ -93,11 +93,12 @@ Column {
|
||||
text: qsTr("H", "height")
|
||||
enabled: backendValues.sourceSize_height.isAvailable
|
||||
}
|
||||
|
||||
/*
|
||||
TODO QDS-4836
|
||||
Spacer { implicitWidth: StudioTheme.Values.controlGap }
|
||||
|
||||
LinkIndicator2D {}
|
||||
|
||||
*/
|
||||
ExpandingSpacer {}
|
||||
}
|
||||
|
||||
|
@@ -83,11 +83,12 @@ Column {
|
||||
text: qsTr("H", "height")
|
||||
tooltip: qsTr("Content height used for calculating the total implicit height.")
|
||||
}
|
||||
|
||||
/*
|
||||
TODO QDS-4836
|
||||
Spacer { implicitWidth: StudioTheme.Values.controlGap }
|
||||
|
||||
LinkIndicator2D {}
|
||||
|
||||
*/
|
||||
ExpandingSpacer {}
|
||||
}
|
||||
}
|
||||
|
@@ -112,11 +112,12 @@ Section {
|
||||
tooltip: xSpinBox.enabled ? "Y" : root.disbaledTooltip
|
||||
enabled: ySpinBox.enabled
|
||||
}
|
||||
|
||||
/*
|
||||
TODO QDS-4836
|
||||
Spacer { implicitWidth: StudioTheme.Values.controlGap }
|
||||
|
||||
LinkIndicator2D {}
|
||||
|
||||
*/
|
||||
ExpandingSpacer {}
|
||||
}
|
||||
|
||||
@@ -167,11 +168,12 @@ Section {
|
||||
tooltip: heightSpinBox.enabled ? qsTr("Height") : root.disbaledTooltip
|
||||
enabled: heightSpinBox.enabled
|
||||
}
|
||||
|
||||
/*
|
||||
TODO QDS-4836
|
||||
Spacer { implicitWidth: StudioTheme.Values.controlGap }
|
||||
|
||||
LinkIndicator2D {}
|
||||
|
||||
*/
|
||||
ExpandingSpacer {}
|
||||
}
|
||||
|
||||
@@ -197,7 +199,8 @@ Section {
|
||||
text: "°"
|
||||
enabled: backendValues.rotation.isAvailable
|
||||
}
|
||||
|
||||
/*
|
||||
TODO QDS-4835
|
||||
Spacer { implicitWidth: StudioTheme.Values.controlGap }
|
||||
|
||||
StudioControls.ButtonRow {
|
||||
@@ -223,7 +226,7 @@ Section {
|
||||
iconRotation: 90
|
||||
}
|
||||
}
|
||||
|
||||
*/
|
||||
ExpandingSpacer {}
|
||||
}
|
||||
|
||||
|
@@ -79,11 +79,12 @@ Column {
|
||||
//: The height of the object
|
||||
text: qsTr("H", "height")
|
||||
}
|
||||
|
||||
/*
|
||||
TODO QDS-4836
|
||||
Spacer { implicitWidth: StudioTheme.Values.controlGap }
|
||||
|
||||
LinkIndicator2D {}
|
||||
|
||||
*/
|
||||
ExpandingSpacer {}
|
||||
}
|
||||
|
||||
|
@@ -73,11 +73,12 @@ Section {
|
||||
text: qsTr("H", "height")
|
||||
tooltip: qsTr("Content height used for calculating the total implicit height.")
|
||||
}
|
||||
|
||||
/*
|
||||
TODO QDS-4836
|
||||
Spacer { implicitWidth: StudioTheme.Values.controlGap }
|
||||
|
||||
LinkIndicator2D {}
|
||||
|
||||
*/
|
||||
ExpandingSpacer {}
|
||||
}
|
||||
|
||||
@@ -109,11 +110,12 @@ Section {
|
||||
Spacer { implicitWidth: StudioTheme.Values.controlLabelGap }
|
||||
|
||||
ControlLabel { text: "Y" }
|
||||
|
||||
/*
|
||||
TODO QDS-4836
|
||||
Spacer { implicitWidth: StudioTheme.Values.controlGap }
|
||||
|
||||
LinkIndicator2D {}
|
||||
|
||||
*/
|
||||
ExpandingSpacer {}
|
||||
}
|
||||
|
||||
@@ -157,11 +159,12 @@ Section {
|
||||
text: "Y"
|
||||
enabled: backendValues.originY.isAvailable
|
||||
}
|
||||
|
||||
/*
|
||||
TODO QDS-4836
|
||||
Spacer { implicitWidth: StudioTheme.Values.controlGap }
|
||||
|
||||
LinkIndicator2D {}
|
||||
|
||||
*/
|
||||
ExpandingSpacer {}
|
||||
}
|
||||
|
||||
|
@@ -103,11 +103,12 @@ Section {
|
||||
text: qsTr("H", "height")
|
||||
enabled: backendValues.sourceSize_height.isAvailable
|
||||
}
|
||||
|
||||
/*
|
||||
TODO QDS-4836
|
||||
Spacer { implicitWidth: StudioTheme.Values.controlGap }
|
||||
|
||||
LinkIndicator2D {}
|
||||
|
||||
*/
|
||||
ExpandingSpacer {}
|
||||
}
|
||||
|
||||
|
@@ -1052,7 +1052,11 @@ QString QtcProcess::stdOut() const
|
||||
|
||||
QString QtcProcess::stdErr() const
|
||||
{
|
||||
QTC_CHECK(d->m_stdErr.keepRawData);
|
||||
// FIXME: The tighter check below is actually good theoretically, but currently
|
||||
// ShellCommand::runFullySynchronous triggers it and disentangling there
|
||||
// is not trivial. So weaken it a bit for now.
|
||||
//QTC_CHECK(d->m_stdErr.keepRawData);
|
||||
QTC_CHECK(d->m_stdErr.keepRawData || d->m_stdErr.rawData.isEmpty());
|
||||
return normalizeNewlines(d->m_codec->toUnicode(d->m_stdErr.rawData));
|
||||
}
|
||||
|
||||
|
@@ -755,6 +755,7 @@ ClangdClient::ClangdClient(Project *project, const Utils::FilePath &jsonDbDir)
|
||||
caps.clearExperimental();
|
||||
setClientCapabilities(caps);
|
||||
setLocatorsEnabled(false);
|
||||
setAutoRequestCodeActions(false); // clangd sends code actions inside diagnostics
|
||||
setProgressTitleForToken(indexingToken(), tr("Parsing C/C++ Files (clangd)"));
|
||||
setCurrentProject(project);
|
||||
|
||||
|
@@ -331,6 +331,7 @@ void ClangModelManagerSupport::updateLanguageClient(ProjectExplorer::Project *pr
|
||||
continue;
|
||||
if (fallbackClient && fallbackClient->documentOpen(editor->textDocument()))
|
||||
fallbackClient->closeDocument(editor->textDocument());
|
||||
if (!client->documentOpen(editor->textDocument()))
|
||||
client->openDocument(editor->textDocument());
|
||||
ClangEditorDocumentProcessor::clearTextMarks(editor->textDocument()->filePath());
|
||||
hasDocuments = true;
|
||||
|
@@ -354,10 +354,12 @@ void Client::openDocument(TextEditor::TextDocument *document)
|
||||
if (!isSupportedDocument(document))
|
||||
return;
|
||||
|
||||
m_openedDocument[document] = document->plainText();
|
||||
|
||||
if (m_state != Initialized)
|
||||
if (m_state != Initialized) {
|
||||
m_postponedDocuments << document;
|
||||
return;
|
||||
}
|
||||
|
||||
QTC_ASSERT(!m_openedDocument.contains(document), return);
|
||||
|
||||
const FilePath &filePath = document->filePath();
|
||||
const QString method(DidOpenTextDocumentNotification::methodName);
|
||||
@@ -377,6 +379,8 @@ void Client::openDocument(TextEditor::TextDocument *document)
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
m_openedDocument[document] = document->plainText();
|
||||
connect(document, &TextDocument::contentsChangedWithPosition, this,
|
||||
[this, document](int position, int charsRemoved, int charsAdded) {
|
||||
documentContentsChanged(document, position, charsRemoved, charsAdded);
|
||||
@@ -427,6 +431,7 @@ void Client::closeDocument(TextEditor::TextDocument *document)
|
||||
deactivateDocument(document);
|
||||
const DocumentUri &uri = DocumentUri::fromFilePath(document->filePath());
|
||||
m_highlights[uri].clear();
|
||||
m_postponedDocuments.remove(document);
|
||||
if (m_openedDocument.remove(document) != 0) {
|
||||
handleDocumentClosed(document);
|
||||
if (m_state == Initialized) {
|
||||
@@ -1317,6 +1322,7 @@ void Client::handleDiagnostics(const PublishDiagnosticsParams ¶ms)
|
||||
m_diagnosticManager.setDiagnostics(uri, diagnostics, params.version());
|
||||
if (LanguageClientManager::clientForUri(uri) == this) {
|
||||
m_diagnosticManager.showDiagnostics(uri, m_documentVersions.value(uri.toFilePath()));
|
||||
if (m_autoRequestCodeActions)
|
||||
requestCodeActions(uri, diagnostics);
|
||||
}
|
||||
}
|
||||
@@ -1451,8 +1457,9 @@ void Client::initializeCallback(const InitializeRequest::Response &initResponse)
|
||||
}
|
||||
}
|
||||
|
||||
for (auto it = m_openedDocument.cbegin(); it != m_openedDocument.cend(); ++it)
|
||||
openDocument(it.key());
|
||||
for (TextEditor::TextDocument *doc : m_postponedDocuments)
|
||||
openDocument(doc);
|
||||
m_postponedDocuments.clear();
|
||||
|
||||
emit initialized(m_serverCapabilities);
|
||||
}
|
||||
|
@@ -128,6 +128,7 @@ public:
|
||||
|
||||
void setLocatorsEnabled(bool enabled) { m_locatorsEnabled = enabled; }
|
||||
bool locatorsEnabled() const { return m_locatorsEnabled; }
|
||||
void setAutoRequestCodeActions(bool enabled) { m_autoRequestCodeActions = enabled; }
|
||||
|
||||
// document synchronization
|
||||
void setSupportedLanguage(const LanguageFilter &filter);
|
||||
@@ -245,6 +246,7 @@ private:
|
||||
LanguageFilter m_languagFilter;
|
||||
QJsonObject m_initializationOptions;
|
||||
QMap<TextEditor::TextDocument *, QString> m_openedDocument;
|
||||
QSet<TextEditor::TextDocument *> m_postponedDocuments;
|
||||
QMap<Utils::FilePath, int> m_documentVersions;
|
||||
QMap<TextEditor::TextDocument *,
|
||||
QList<LanguageServerProtocol::DidChangeTextDocumentParams::TextDocumentContentChangeEvent>>
|
||||
@@ -281,6 +283,7 @@ private:
|
||||
QString m_serverVersion;
|
||||
LanguageServerProtocol::SymbolStringifier m_symbolStringifier;
|
||||
bool m_locatorsEnabled = true;
|
||||
bool m_autoRequestCodeActions = true;
|
||||
};
|
||||
|
||||
} // namespace LanguageClient
|
||||
|
@@ -482,14 +482,17 @@ void ToolChainKitAspect::setup(Kit *k)
|
||||
QTC_ASSERT(k, return);
|
||||
|
||||
QVariantMap value = k->value(id()).toMap();
|
||||
bool lockToolchains = k->isSdkProvided() && !value.isEmpty();
|
||||
if (value.empty())
|
||||
value = defaultToolChainValue().toMap();
|
||||
|
||||
for (auto i = value.constBegin(); i != value.constEnd(); ++i) {
|
||||
Utils::Id l = findLanguage(i.key());
|
||||
|
||||
if (!l.isValid())
|
||||
if (!l.isValid()) {
|
||||
lockToolchains = false;
|
||||
continue;
|
||||
}
|
||||
|
||||
const QByteArray id = i.value().toByteArray();
|
||||
ToolChain *tc = ToolChainManager::findToolChain(id);
|
||||
@@ -497,6 +500,7 @@ void ToolChainKitAspect::setup(Kit *k)
|
||||
continue;
|
||||
|
||||
// ID is not found: Might be an ABI string...
|
||||
lockToolchains = false;
|
||||
const QString abi = QString::fromUtf8(id);
|
||||
tc = ToolChainManager::toolChain([abi, l](const ToolChain *t) {
|
||||
return t->targetAbi().toString() == abi && t->language() == l;
|
||||
@@ -506,6 +510,8 @@ void ToolChainKitAspect::setup(Kit *k)
|
||||
else
|
||||
clearToolChain(k, l);
|
||||
}
|
||||
|
||||
k->setSticky(id(), lockToolchains);
|
||||
}
|
||||
|
||||
KitAspectWidget *ToolChainKitAspect::createConfigWidget(Kit *k) const
|
||||
|
@@ -222,10 +222,9 @@ void KitManager::restoreKits()
|
||||
// Overwrite settings that the SDK sets to those values:
|
||||
for (const KitAspect *aspect : KitManager::kitAspects()) {
|
||||
// Copy sticky settings over:
|
||||
if (ptr->isSticky(aspect->id())) {
|
||||
ptr->setSticky(aspect->id(), toStore->isSticky(aspect->id()));
|
||||
if (ptr->isSticky(aspect->id()))
|
||||
ptr->setValue(aspect->id(), toStore->value(aspect->id()));
|
||||
ptr->setSticky(aspect->id(), true);
|
||||
}
|
||||
}
|
||||
toStore = std::move(*i);
|
||||
kitsToCheck.erase(i);
|
||||
|
@@ -99,10 +99,12 @@ void AddPropertyVisitor::addInMembers(QmlJS::AST::UiObjectInitializer *initializ
|
||||
|
||||
// Find out if the previous members ends with semicolon.
|
||||
if (auto member = QmlJS::AST::cast<QmlJS::AST::UiScriptBinding*>(insertAfter->member)) {
|
||||
if (auto stmt = QmlJS::AST::cast<QmlJS::AST::ExpressionStatement*>(member->statement))
|
||||
previousMemberSemicolon = stmt->semicolonToken.isValid();
|
||||
else
|
||||
if (auto stmt = QmlJS::AST::cast<QmlJS::AST::ExpressionStatement *>(member->statement)) {
|
||||
previousMemberSemicolon = stmt->semicolonToken.isValid()
|
||||
&& stmt->semicolonToken.length > 0;
|
||||
} else {
|
||||
previousMemberSemicolon = endOfPreviousMember.isValid();
|
||||
}
|
||||
} else {
|
||||
previousMemberSemicolon = endOfPreviousMember.isValid();
|
||||
}
|
||||
|
@@ -252,7 +252,7 @@ void QtKitAspect::fix(Kit *k)
|
||||
return systemEnvironment.path().contains(t->compilerCommand().parentDir());
|
||||
});
|
||||
if (!bestTc) {
|
||||
bestTc = goodTcs.isEmpty() ? possibleTcs.last() : goodTcs.last();
|
||||
bestTc = goodTcs.isEmpty() ? possibleTcs.first() : goodTcs.first();
|
||||
}
|
||||
if (bestTc)
|
||||
ToolChainKitAspect::setAllToolChainsToMatch(k, bestTc);
|
||||
|
@@ -143,12 +143,13 @@ public:
|
||||
// Workaround QTCREATORBUG-11653
|
||||
void calculateMaximumWidth()
|
||||
{
|
||||
const int desktopWidth = screen()->availableGeometry().width();
|
||||
const QRect screenGeometry = screen()->availableGeometry();
|
||||
const int xOnScreen = this->pos().x() - screenGeometry.x();
|
||||
const QMargins widgetMargins = contentsMargins();
|
||||
const QMargins layoutMargins = layout()->contentsMargins();
|
||||
const int margins = widgetMargins.left() + widgetMargins.right()
|
||||
+ layoutMargins.left() + layoutMargins.right();
|
||||
m_label->setMaximumWidth(desktopWidth - this->pos().x() - margins);
|
||||
m_label->setMaximumWidth(qMax(0, screenGeometry.width() - xOnScreen - margins));
|
||||
}
|
||||
|
||||
private:
|
||||
|
@@ -275,7 +275,8 @@ public:
|
||||
auto getStartedButton = new WelcomePageButton(this);
|
||||
getStartedButton->setText(tr("Get Started Now"));
|
||||
getStartedButton->setOnClicked([] {
|
||||
QDesktopServices::openUrl(QString("qthelp://org.qt-project.qtcreator/doc/index.html"));
|
||||
QDesktopServices::openUrl(
|
||||
QString("qthelp://org.qt-project.qtcreator/doc/creator-getting-started.html"));
|
||||
});
|
||||
l->addWidget(getStartedButton);
|
||||
|
||||
|