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.
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
main
int main(int argc, char *argv[])
[2]
Definition
buffer.cpp:77
MainWindow
[5]
Definition
src_corelib_kernel_qobject.cpp:52
MainWindow::mousePressEvent
void mousePressEvent(QMouseEvent *event) override
[0]
Definition
mainwindow.cpp:34
qtbase
src
gui
doc
snippets
dragging
mainwindow.h
Generated on Thu Nov 14 2024 00:41:05 for Qt by
1.12.0