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
6class MainWindow : public QMainWindow
7{
8public:
10
12};
13
14MainWindow()
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
24int main()
25{
26 return 0;
27}
QAction * newAct
Definition whatsthis.cpp:11
int main()
[0]