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
mainwindow.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd and/or its subsidiary(-ies).
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
3
4#ifndef MAINWINDOW_H
5#define MAINWINDOW_H
6
7#include <QMainWindow>
8
10
11class QDBusViewer;
12
13class MainWindow : public QMainWindow
14{
16public:
17 explicit MainWindow(QWidget *parent = 0);
19
20 void addCustomBusTab(const QString &bus);
21
22private slots:
23 void about();
24
25private:
26 void saveSettings();
27 void restoreSettings();
28
29 QTabWidget *tabWidget;
30 QDBusViewer *sessionBusViewer;
31 QDBusViewer *systemBusViewer;
32};
33
34#endif // MAINWINDOW_H
int main(int argc, char *argv[])
[2]
Definition buffer.cpp:77
~MainWindow() override
void addCustomBusTab(const QString &bus)
The QTabWidget class provides a stack of tabbed widgets.
Definition qtabwidget.h:20