diff options
Diffstat (limited to 'examples/uitools/doc/src/textfinder.qdoc')
-rw-r--r-- | examples/uitools/doc/src/textfinder.qdoc | 46 |
1 files changed, 12 insertions, 34 deletions
diff --git a/examples/uitools/doc/src/textfinder.qdoc b/examples/uitools/doc/src/textfinder.qdoc index b6d1936ee..91cfac5db 100644 --- a/examples/uitools/doc/src/textfinder.qdoc +++ b/examples/uitools/doc/src/textfinder.qdoc @@ -1,34 +1,12 @@ -/**************************************************************************** -** -** Copyright (C) 2017 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the documentation of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:FDL$ -** 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 -** 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. -** -** 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. -** $QT_END_LICENSE$ -** -****************************************************************************/ +// Copyright (C) 2017 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only /*! \example textfinder + \examplecategory {Desktop} + \meta tags {widgets,designer} \ingroup examples-qtuitools - \title Text Finder Example + \title Text Finder \brief Dynamically loading .ui files using QUiLoader. @@ -41,8 +19,8 @@ loaded at runtime, from a the program resources. \table - \row \li \inlineimage textfinder-example-find.png - \li \inlineimage textfinder-example-find2.png + \row \li \inlineimage textfinder-example-find.webp + \li \inlineimage textfinder-example-find2.webp \endtable \section1 Setting Up The Resource File @@ -50,7 +28,7 @@ The resources required for the example are: \list \li \c{textfinder.ui} - the user interface file created in - \l{Qt Designer} + \l{Qt Widgets Designer} \li \c{input.txt} - a text file containing some text to be displayed in a QTextEdit \endlist @@ -62,9 +40,9 @@ that all the widgets have sensible \c{objectName}'s assigned. These are used in code to identify them. - The screenshot below shows the preview obtained in \l{Qt Designer}. + The screenshot below shows the preview obtained in \l{Qt Widgets Designer}. - \image textfinder-example-userinterface.png + \image doc/images/textfinder-example-userinterface.webp In this example, we store both resources in the applicaton's executable by including the \c{textfinder.qrc} file. Alternatively, the files could also @@ -103,7 +81,7 @@ \c{loadUiFile} and \c{loadTextFile}. The \c{loadUiFile} function loads the user interface file previously - created in \l{Qt Designer}. First, the content of the \c{textfinder.ui} + created in \l{Qt Widgets Designer}. First, the content of the \c{textfinder.ui} file is loaded from the resource system. Then a QUiLoader instance is created, and the QUiLoader::load() function is called, with the first argument being the open file, and the second argument being the pointer of @@ -174,5 +152,5 @@ QUILoader is just one of them. See \l{Using a Designer UI File in Your Application} for more information on the other approaches available. - \sa {Calculator Builder Example}, {World Time Clock Builder Example} + \sa {Calculator Builder} */ |