Qt
6.x
The Qt SDK
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
QLabel
;
12
class
QLineEdit
;
13
class
QMouseEvent
;
14
class
QTextEdit
;
15
16
class
MainWindow
:
public
QMainWindow
17
{
18
Q_OBJECT
19
20
public
:
21
explicit
MainWindow
(
QWidget
*
parent
=
nullptr
);
22
23
protected
:
24
void
mousePressEvent
(
QMouseEvent
*
event
)
override
;
25
26
private
:
27
QLabel
*iconLabel;
28
QLineEdit
*nameEdit;
29
QPixmap
iconPixmap;
30
QPoint
dragStartPosition;
31
QTextEdit
*commentEdit;
32
};
33
34
#endif
MainWindow
[5]
Definition
src_corelib_kernel_qobject.cpp:52
MainWindow::mousePressEvent
void mousePressEvent(QMouseEvent *event) override
[0]
Definition
mainwindow.cpp:34
MainWindow::MainWindow
MainWindow(QWidget *parent=nullptr)
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:195
QObject::parent
QObject * parent() const
Returns a pointer to the parent object.
Definition
qobject.h:311
QPixmap
Returns a copy of the pixmap that is transformed using the given transformation transform and transfo...
Definition
qpixmap.h:27
QPoint
\inmodule QtCore\reentrant
Definition
qpoint.h:23
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
event
struct _cl_event * event
Definition
qopenglext.h:2998
Q_OBJECT
#define Q_OBJECT
Definition
qtmetamacros.h:117
qtbase
src
gui
doc
snippets
dragging
mainwindow.h
Generated by
1.9.7