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
clipwindow.h
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#ifndef CLIPWINDOW_H
5#define CLIPWINDOW_H
6
7#include <QMainWindow>
8
9class QClipboard;
10class QComboBox;
11class QLabel;
12class QListWidget;
13class QMimeData;
14class QWidget;
15
16class ClipWindow : public QMainWindow
17{
19
20public:
21 explicit ClipWindow(QWidget *parent = nullptr);
22
23public slots:
24 void updateClipboard();
25 void updateData(const QString &format);
26
27private:
28 int currentItem;
29 QClipboard *clipboard;
30 QComboBox *mimeTypeCombo;
31 QLabel *dataInfoLabel;
32 QListWidget *previousItems;
33};
34
35#endif
void updateData(const QString &format)
ClipWindow(QWidget *parent=nullptr)
Definition clipwindow.cpp:9
void updateClipboard()
[1]
The QClipboard class provides access to the window system clipboard.
Definition qclipboard.h:20
The QComboBox widget combines a button with a dropdown list.
Definition qcombobox.h:24
The QLabel widget provides a text or image display.
Definition qlabel.h:20
The QListWidget class provides an item-based list widget.
The QMainWindow class provides a main application window.
Definition qmainwindow.h:25
\inmodule QtCore
Definition qmimedata.h:16
QObject * parent() const
Returns a pointer to the parent object.
Definition qobject.h:346
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
The QWidget class is the base class of all user interface objects.
Definition qwidget.h:99
GLint GLsizei GLsizei GLenum format
#define Q_OBJECT
#define slots