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
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
int main(int argc, char *argv[])
[2]
Definition buffer.cpp:77
void mousePressEvent(QMouseEvent *event) override
[0]