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
11class QLabel;
12class QLineEdit;
13class QMouseEvent;
14class QTextEdit;
15
16class MainWindow : public QMainWindow
17{
19
20public:
21 explicit MainWindow(QWidget *parent = nullptr);
22
23protected:
24 void mousePressEvent(QMouseEvent *event) override;
25
26private:
27 QLabel *iconLabel;
28 QLineEdit *nameEdit;
29 QPixmap iconPixmap;
30 QPoint dragStartPosition;
31 QTextEdit *commentEdit;
32};
33
34#endif
void mousePressEvent(QMouseEvent *event) override
[0]
MainWindow(QWidget *parent=nullptr)
The QLabel widget provides a text or image display.
Definition qlabel.h:20
The QLineEdit widget is a one-line text editor.
Definition qlineedit.h:28
The QMainWindow class provides a main application window.
Definition qmainwindow.h:25
\inmodule QtGui
Definition qevent.h:196
QObject * parent() const
Returns a pointer to the parent object.
Definition qobject.h:346
Returns a copy of the pixmap that is transformed using the given transformation transform and transfo...
Definition qpixmap.h:27
\inmodule QtCore\reentrant
Definition qpoint.h:25
The QTextEdit class provides a widget that is used to edit and display both plain and rich text.
Definition qtextedit.h:27
The QWidget class is the base class of all user interface objects.
Definition qwidget.h:99
struct _cl_event * event
#define Q_OBJECT