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
doc_src_linguist-manual.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
4
//! [3]
5
label->setText(tr(
"F\374r \310lise"
));
6
//! [3]
7
//! [4]
8
menuBar: MenuBar {
9
Menu {
10
title: qsTr(
"&File"
)
11
Action { text: qsTr(
"&New..."
) }
12
Action { text: qsTr(
"&Open..."
) }
13
Action { text: qsTr(
"&Save"
) }
14
Action { text: qsTr(
"Save &As..."
) }
15
MenuSeparator { }
16
Action { text: qsTr(
"&Quit"
) }
17
}
18
Menu {
19
title: qsTr(
"&Edit"
)
20
Action { text: qsTr(
"Cu&t"
) }
21
Action { text: qsTr(
"&Copy"
) }
22
Action { text: qsTr(
"&Paste"
) }
23
}
24
Menu {
25
title: qsTr(
"&Help"
)
26
Action { text: qsTr(
"&About"
) }
27
}
28
}
29
30
//! [4]
31
//! [5]
32
/*
33
TRANSLATOR MainWindow
34
35
This class contains the main application window interface.
36
All menu items and toolbar buttons are defined here.
37
*/
38
class
MainWindow
:
public
QMainWindow
39
{
40
// ... translations for this context
41
};
42
//! [5]
MainWindow
[6]
Definition
src_corelib_kernel_qmetaobject.cpp:74
qttools
src
linguist
linguist
doc
snippets
doc_src_linguist-manual.cpp
Generated on
for Qt by
1.14.0