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
whatsthis.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
#
include
<
QtGui
>
5
6
class
MainWindow
:
public
QMainWindow
7
{
8
public
:
9
MainWindow
();
10
11
QAction
*
newAct
;
12
};
13
14
MainWindow()
15
{
16
//! [0]
17
newAct =
new
QAction(tr(
"&New"
),
this
);
18
newAct->setShortcut(tr(
"Ctrl+N"
));
19
newAct->setStatusTip(tr(
"Create a new file"
));
20
newAct->setWhatsThis(tr(
"Click this option to create a new file."
));
21
//! [0]
22
}
23
24
int
main
()
25
{
26
return
0;
27
}
MainWindow
[5]
Definition
src_corelib_kernel_qobject.cpp:52
MainWindow::MainWindow
MainWindow()
[17]
Definition
src_corelib_kernel_qobject.cpp:63
MainWindow::newAct
QAction * newAct
Definition
whatsthis.cpp:11
main
int main()
[0]
Definition
doc_src_objecttrees.cpp:5
qtbase
src
widgets
doc
snippets
whatsthis
whatsthis.cpp
Generated on Thu Nov 14 2024 00:46:13 for Qt by
1.12.0