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
mainwindow.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 MAINWINDOW_H
5
#define MAINWINDOW_H
6
7
#include <QMainWindow>
8
#include <QPixmap>
9
#include <QPoint>
10
11
class
QComboBox
;
12
class
QLabel
;
13
class
QLineEdit
;
14
class
QMouseEvent
;
15
class
QTextEdit
;
16
class
DragWidget
;
17
18
class
MainWindow
:
public
QMainWindow
19
{
20
Q_OBJECT
21
22
public
:
23
explicit
MainWindow
(
QWidget
*
parent
=
nullptr
);
24
25
public
slots
:
26
void
setDragResult
(
const
QString
&actionText);
27
void
setMimeTypes
(
const
QStringList
&
types
);
28
29
private
:
30
QComboBox
*mimeTypeCombo;
31
DragWidget
*dragWidget;
32
};
33
34
#endif
DragWidget
Definition
dragwidget.h:18
MainWindow
[5]
Definition
src_corelib_kernel_qobject.cpp:52
MainWindow::MainWindow
MainWindow()
[17]
Definition
src_corelib_kernel_qobject.cpp:63
MainWindow::setDragResult
void setDragResult(const QString &actionText)
Definition
mainwindow.cpp:38
MainWindow::setMimeTypes
void setMimeTypes(const QStringList &types)
Definition
mainwindow.cpp:43
QComboBox
The QComboBox widget combines a button with a dropdown list.
Definition
qcombobox.h:24
QLabel
The QLabel widget provides a text or image display.
Definition
qlabel.h:20
QLineEdit
The QLineEdit widget is a one-line text editor.
Definition
qlineedit.h:28
QMainWindow
The QMainWindow class provides a main application window.
Definition
qmainwindow.h:25
QMouseEvent
\inmodule QtGui
Definition
qevent.h:196
QObject::parent
QObject * parent() const
Returns a pointer to the parent object.
Definition
qobject.h:346
QStringList
\inmodule QtCore
QString
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition
qstring.h:129
QTextEdit
The QTextEdit class provides a widget that is used to edit and display both plain and rich text.
Definition
qtextedit.h:27
QWidget
The QWidget class is the base class of all user interface objects.
Definition
qwidget.h:99
types
GLsizei GLenum GLenum * types
Definition
qopengles2ext.h:153
Q_OBJECT
#define Q_OBJECT
Definition
qtmetamacros.h:119
slots
#define slots
Definition
qtmetamacros.h:40
qtbase
src
gui
doc
snippets
draganddrop
mainwindow.h
Generated by
1.10.0