Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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
15{
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."));
22}
23
24int main()
25{
26 return 0;
27}
QAction * newAct
Definition whatsthis.cpp:11
The QAction class provides an abstraction for user commands that can be added to different user inter...
Definition qaction.h:30
The QMainWindow class provides a main application window.
Definition qmainwindow.h:25
#define tr(X)
int main()
Definition whatsthis.cpp:24
MainWindow()
Definition whatsthis.cpp:14