Doc: update Qt Widgets examples
- \image --> \borderedimage - update screenshot if required Change-Id: I0318b1df67154b70c061da7cbd509b8d5337b311 Reviewed-by: Venugopal Shivashankar <Venugopal.Shivashankar@qt.io>
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 6.4 KiB |
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 38 KiB After Width: | Height: | Size: 20 KiB |
Before Width: | Height: | Size: 27 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 9.0 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 6.4 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 9.5 KiB |
Before Width: | Height: | Size: 165 KiB After Width: | Height: | Size: 246 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 8.0 KiB |
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 22 KiB |
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 5.2 KiB |
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 21 KiB |
Before Width: | Height: | Size: 128 KiB After Width: | Height: | Size: 134 KiB |
Before Width: | Height: | Size: 9.7 KiB After Width: | Height: | Size: 5.3 KiB |
Before Width: | Height: | Size: 6.4 KiB After Width: | Height: | Size: 8.3 KiB |
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 38 KiB |
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 25 KiB |
@ -32,7 +32,8 @@
|
|||||||
\brief The System Tray Icon example shows how to add an icon with a menu
|
\brief The System Tray Icon example shows how to add an icon with a menu
|
||||||
and popup messages to a desktop environment's system tray.
|
and popup messages to a desktop environment's system tray.
|
||||||
|
|
||||||
\image systemtray-example.png Screenshot of the System Tray Icon.
|
\borderedimage systemtray-example.png
|
||||||
|
\caption Screenshot of the System Tray Icon
|
||||||
|
|
||||||
Modern operating systems usually provide a special area on the
|
Modern operating systems usually provide a special area on the
|
||||||
desktop, called the system tray or notification area, where
|
desktop, called the system tray or notification area, where
|
||||||
@ -42,7 +43,7 @@
|
|||||||
the main application window (i.e., an editor for the system tray
|
the main application window (i.e., an editor for the system tray
|
||||||
icon) and the associated icon.
|
icon) and the associated icon.
|
||||||
|
|
||||||
\image systemtray-editor.png
|
\borderedimage systemtray-editor.png
|
||||||
|
|
||||||
The editor allows the user to choose the preferred icon as well as
|
The editor allows the user to choose the preferred icon as well as
|
||||||
set the balloon message's type and duration. The user can also
|
set the balloon message's type and duration. The user can also
|
||||||
|
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 25 KiB |
@ -32,7 +32,8 @@
|
|||||||
\brief The Analog Clock example shows how to draw the contents of a
|
\brief The Analog Clock example shows how to draw the contents of a
|
||||||
custom widget.
|
custom widget.
|
||||||
|
|
||||||
\image analogclock-example.png Screenshot of the Analog Clock example
|
\borderedimage analogclock-example.png
|
||||||
|
\caption Screenshot of the Analog Clock example
|
||||||
|
|
||||||
This example also demonstrates how the transformation and scaling
|
This example also demonstrates how the transformation and scaling
|
||||||
features of QPainter can be used to make drawing custom widgets
|
features of QPainter can be used to make drawing custom widgets
|
||||||
|
@ -33,7 +33,8 @@
|
|||||||
functionality of a calculator widget, and how to use QGridLayout
|
functionality of a calculator widget, and how to use QGridLayout
|
||||||
to place child widgets in a grid.
|
to place child widgets in a grid.
|
||||||
|
|
||||||
\image calculator-example.png Screenshot of the Calculator example
|
\borderedimage calculator-example.png
|
||||||
|
\caption Screenshot of the Calculator example
|
||||||
|
|
||||||
The example consists of two classes:
|
The example consists of two classes:
|
||||||
|
|
||||||
@ -370,6 +371,7 @@
|
|||||||
QSizePolicy::Expanding in the constructor and if we didn't
|
QSizePolicy::Expanding in the constructor and if we didn't
|
||||||
reimplement QWidget::sizeHint().
|
reimplement QWidget::sizeHint().
|
||||||
|
|
||||||
\image calculator-ugly.png The Calculator example with default size policies and size hints
|
\borderedimage calculator-ugly.png
|
||||||
|
\caption The Calculator example with default size policies and size hints
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
\ingroup examples-widgets
|
\ingroup examples-widgets
|
||||||
\brief The Calendar Widget example shows use of QCalendarWidget.
|
\brief The Calendar Widget example shows use of QCalendarWidget.
|
||||||
|
|
||||||
\image calendarwidgetexample.png
|
\borderedimage calendarwidgetexample.png
|
||||||
|
|
||||||
QCalendarWidget displays one calendar month
|
QCalendarWidget displays one calendar month
|
||||||
at a time and lets the user select a date.
|
at a time and lets the user select a date.
|
||||||
|
@ -38,7 +38,8 @@ copied into the clipboard, and pasted into other applications. The
|
|||||||
purpose behind this sort of tool is to allow users to enter characters
|
purpose behind this sort of tool is to allow users to enter characters
|
||||||
that may be unavailable or difficult to locate on their keyboards.
|
that may be unavailable or difficult to locate on their keyboards.
|
||||||
|
|
||||||
\image charactermap-example.png Screenshot of the Character Map example
|
\borderedimage charactermap-example.png
|
||||||
|
\caption Screenshot of the Character Map example
|
||||||
|
|
||||||
The example consists of the following classes:
|
The example consists of the following classes:
|
||||||
|
|
||||||
|
@ -32,7 +32,7 @@
|
|||||||
\brief The Code Editor example shows how to create a simple editor that
|
\brief The Code Editor example shows how to create a simple editor that
|
||||||
has line numbers and that highlights the current line.
|
has line numbers and that highlights the current line.
|
||||||
|
|
||||||
\image codeeditor-example.png
|
\borderedimage codeeditor-example.png
|
||||||
|
|
||||||
As can be seen from the image, the editor displays the line
|
As can be seen from the image, the editor displays the line
|
||||||
numbers in an area to the left of the area for editing. The editor
|
numbers in an area to the left of the area for editing. The editor
|
||||||
|
@ -32,7 +32,8 @@
|
|||||||
\brief The Digital Clock example shows how to use QLCDNumber to display a
|
\brief The Digital Clock example shows how to use QLCDNumber to display a
|
||||||
number with LCD-like digits.
|
number with LCD-like digits.
|
||||||
|
|
||||||
\image digitalclock-example.png Screenshot of the Digital Clock example
|
\borderedimage digitalclock-example.png
|
||||||
|
\caption Screenshot of the Digital Clock example
|
||||||
|
|
||||||
This example also demonstrates how QTimer can be used to update a widget
|
This example also demonstrates how QTimer can be used to update a widget
|
||||||
at regular intervals.
|
at regular intervals.
|
||||||
|
@ -40,7 +40,7 @@
|
|||||||
Group boxes are usually used to organize check boxes and radio
|
Group boxes are usually used to organize check boxes and radio
|
||||||
buttons into exclusive groups.
|
buttons into exclusive groups.
|
||||||
|
|
||||||
\image groupbox-example.png
|
\borderedimage groupbox-example.png
|
||||||
|
|
||||||
The Group Boxes example consists of a single \c Window class that
|
The Group Boxes example consists of a single \c Window class that
|
||||||
is used to show four group boxes: an exclusive radio button group,
|
is used to show four group boxes: an exclusive radio button group,
|
||||||
|
@ -44,7 +44,8 @@
|
|||||||
can be used to implement zooming and scaling features. In
|
can be used to implement zooming and scaling features. In
|
||||||
addition the example shows how to use QPainter to print an image.
|
addition the example shows how to use QPainter to print an image.
|
||||||
|
|
||||||
\image imageviewer-example.png Screenshot of the Image Viewer example
|
\borderedimage imageviewer-example.png
|
||||||
|
\caption Screenshot of the Image Viewer example
|
||||||
|
|
||||||
With the Image Viewer application, the users can view an image of
|
With the Image Viewer application, the users can view an image of
|
||||||
their choice. The \uicontrol File menu gives the user the possibility
|
their choice. The \uicontrol File menu gives the user the possibility
|
||||||
|
@ -34,7 +34,7 @@
|
|||||||
on the input and output supplied by the user.
|
on the input and output supplied by the user.
|
||||||
|
|
||||||
|
|
||||||
\image lineedits-example.png
|
\borderedimage lineedits-example.png
|
||||||
|
|
||||||
The example consists of a single \c Window class, containing a selection of
|
The example consists of a single \c Window class, containing a selection of
|
||||||
line edits with different input constraints and display properties that can be
|
line edits with different input constraints and display properties that can be
|
||||||
|
@ -36,5 +36,5 @@
|
|||||||
a simple animation without the added complexity of a multimedia
|
a simple animation without the added complexity of a multimedia
|
||||||
framework to install and deploy.
|
framework to install and deploy.
|
||||||
|
|
||||||
\image movie-example.png
|
\borderedimage movie-example.png
|
||||||
*/
|
*/
|
||||||
|
@ -32,7 +32,7 @@
|
|||||||
\brief The Shaped Clock example shows how to apply a widget mask to a top-level
|
\brief The Shaped Clock example shows how to apply a widget mask to a top-level
|
||||||
widget to produce a shaped window.
|
widget to produce a shaped window.
|
||||||
|
|
||||||
\image shapedclock-example.png
|
\borderedimage shapedclock-example.png
|
||||||
|
|
||||||
Widget masks are used to customize the shapes of top-level widgets by restricting
|
Widget masks are used to customize the shapes of top-level widgets by restricting
|
||||||
the available area for painting. On some window systems, setting certain window flags
|
the available area for painting. On some window systems, setting certain window flags
|
||||||
|
@ -43,7 +43,8 @@
|
|||||||
The example also demonstrates how signals and slots can be used to
|
The example also demonstrates how signals and slots can be used to
|
||||||
synchronize the behavior of two or more widgets.
|
synchronize the behavior of two or more widgets.
|
||||||
|
|
||||||
\image sliders-example.png Screenshot of the Sliders example
|
\borderedimage sliders-example.png
|
||||||
|
\caption Screenshot of the Sliders example
|
||||||
|
|
||||||
The Sliders example consists of two classes:
|
The Sliders example consists of two classes:
|
||||||
|
|
||||||
|
@ -33,7 +33,7 @@
|
|||||||
spin boxes available in Qt, from a simple QSpinBox widget to more complex
|
spin boxes available in Qt, from a simple QSpinBox widget to more complex
|
||||||
editors like the QDateTimeEdit widget.
|
editors like the QDateTimeEdit widget.
|
||||||
|
|
||||||
\image spinboxes-example.png
|
\borderedimage spinboxes-example.png
|
||||||
|
|
||||||
The example consists of a single \c Window class that is used to display the
|
The example consists of a single \c Window class that is used to display the
|
||||||
different spin box-based widgets available with Qt.
|
different spin box-based widgets available with Qt.
|
||||||
|
@ -32,7 +32,8 @@
|
|||||||
\brief The Styles example illustrates how to create custom widget
|
\brief The Styles example illustrates how to create custom widget
|
||||||
drawing styles using Qt, and demonstrates Qt's predefined styles.
|
drawing styles using Qt, and demonstrates Qt's predefined styles.
|
||||||
|
|
||||||
\image styles-enabledwood.png Screenshot of the Styles example
|
\borderedimage styles-enabledwood.png
|
||||||
|
\caption Screenshot of the Styles example
|
||||||
|
|
||||||
A style in Qt is a subclass of QStyle or of one of its
|
A style in Qt is a subclass of QStyle or of one of its
|
||||||
subclasses. Styles perform drawing on behalf of widgets. Qt
|
subclasses. Styles perform drawing on behalf of widgets. Qt
|
||||||
|
@ -31,6 +31,7 @@
|
|||||||
\ingroup examples-widgets
|
\ingroup examples-widgets
|
||||||
\brief The Style Sheet Example shows how to use style sheets.
|
\brief The Style Sheet Example shows how to use style sheets.
|
||||||
|
|
||||||
\image stylesheet-pagefold.png Screen Shot of the Pagefold style sheet
|
\borderedimage stylesheet-pagefold.png
|
||||||
|
\caption Screen Shot of the Pagefold style sheet
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
\ingroup examples-widgets
|
\ingroup examples-widgets
|
||||||
\brief The Tetrix example is a Qt version of the classic Tetrix game.
|
\brief The Tetrix example is a Qt version of the classic Tetrix game.
|
||||||
|
|
||||||
\image tetrix-example.png
|
\borderedimage tetrix-example.png
|
||||||
|
|
||||||
The object of the game is to stack pieces dropped from the top of the
|
The object of the game is to stack pieces dropped from the top of the
|
||||||
playing area so that they fill entire rows at the bottom of the playing area.
|
playing area so that they fill entire rows at the bottom of the playing area.
|
||||||
|
@ -34,7 +34,8 @@
|
|||||||
addition, the example demonstrates how to use QFontMetrics to
|
addition, the example demonstrates how to use QFontMetrics to
|
||||||
determine the size of text on screen.
|
determine the size of text on screen.
|
||||||
|
|
||||||
\image wiggly-example.png Screenshot of the Wiggly example
|
\borderedimage wiggly-example.png
|
||||||
|
\caption Screenshot of the Wiggly example
|
||||||
|
|
||||||
QBasicTimer is a low-level class for timers. Unlike QTimer,
|
QBasicTimer is a low-level class for timers. Unlike QTimer,
|
||||||
QBasicTimer doesn't inherit from QObject; instead of emitting a
|
QBasicTimer doesn't inherit from QObject; instead of emitting a
|
||||||
|
@ -41,7 +41,8 @@
|
|||||||
A widget's flags are stored in a Qt::WindowFlags type which stores
|
A widget's flags are stored in a Qt::WindowFlags type which stores
|
||||||
an OR combination of the flags.
|
an OR combination of the flags.
|
||||||
|
|
||||||
\image windowflags-example.png Screenshot of the Window Flags example
|
\borderedimage windowflags-example.png
|
||||||
|
\caption Screenshot of the Window Flags example
|
||||||
|
|
||||||
The example consists of two classes:
|
The example consists of two classes:
|
||||||
|
|
||||||
|