Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
tools_designer_src_lib_uilib_formbuilder.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
MyForm::MyForm(QWidget *parent)
7
: QWidget(parent)
8
{
9
QFormBuilder builder;
10
QFile file(
":/forms/myWidget.ui"
);
11
file.open(QFile::ReadOnly);
12
QWidget *myWidget = builder.load(&file,
this
);
13
file.close();
14
15
auto
*layout =
new
QVBoxLayout(
this
);
16
layout->addWidget(myWidget);
17
}
18
//! [0]
19
20
21
//! [1]
22
<!DOCTYPE RCC><RCC version=
"1.0"
>
23
<qresource prefix=
"/forms"
>
24
<file>mywidget.ui</file>
25
</qresource>
26
</RCC>
27
//! [1]
qttools
src
designer
src
designer
doc
snippets
lib
tools_designer_src_lib_uilib_formbuilder.cpp
Generated on
for Qt by
1.18.0