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
11QT_BEGIN_NAMESPACE
12
13class QLabel;
14class QLineEdit;
15class QMouseEvent;
16class QTextEdit;
17
18class MainWindow : public QMainWindow
19{
21
22public:
23 explicit MainWindow(QWidget *parent = nullptr);
24
25protected:
26 void mousePressEvent(QMouseEvent *event) override;
27
28private:
29 QLabel *iconLabel;
30 QLineEdit *nameEdit;
31 QPixmap iconPixmap;
32 QPoint dragStartPosition;
33 QTextEdit *commentEdit;
34};
35
36QT_END_NAMESPACE
37
38#endif
void mousePressEvent(QMouseEvent *event) override
[0]
int main(int argc, char *argv[])
[ctor_close]