Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
tools_designer_src_lib_sdk_abstractwidgetbox.cpp
Go to the documentation of this file.
1
// Copyright (C) 2016 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3
// Qt-Security score:significant reason:default
4
5
//! [0]
6
auto
*
widgetBox
= formEditor->widgetBox();
7
8
widgetBox->load();
9
//! [0]
10
11
12
//! [1]
13
QString
originalFile
= widgetBox->fileName();
14
15
widgetBox->setFileName(
"myWidgetBox.xml"
);
16
widgetBox->save();
17
//! [1]
18
19
20
//! [2]
21
widgetBox->setFileName(originalFile);
22
widgetBox->load();
23
//! [2]
24
25
26
//! [3]
27
if
(widgetBox->filename() !=
"myWidgetBox.xml"
) {
28
widgetBox->setFileName(
"myWidgetBox.xml"
);
29
widgetBox->load();
30
}
31
//! [3]
widgetBox
auto * widgetBox
[0]
Definition
tools_designer_src_lib_sdk_abstractwidgetbox.cpp:6
originalFile
QString originalFile
[0]
Definition
tools_designer_src_lib_sdk_abstractwidgetbox.cpp:13
qttools
src
designer
src
designer
doc
snippets
lib
tools_designer_src_lib_sdk_abstractwidgetbox.cpp
Generated on
for Qt by
1.16.1