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
main.cpp
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
#include <QApplication>
5
#include <QTextEdit>
6
7
#include "
filterobject.h
"
8
9
int
main
(
int
argc,
char
*argv[])
10
{
11
QApplication
app
(argc, argv);
12
QTextEdit
editor;
13
FilterObject
filter
;
14
filter
.
setFilteredObject
(&editor);
15
editor.show();
16
return
app
.
exec
();
17
}
FilterObject
Definition
filterobject.h:10
FilterObject::setFilteredObject
void setFilteredObject(QObject *object)
[0]
Definition
filterobject.cpp:28
QApplication
The QApplication class manages the GUI application's control flow and main settings.
Definition
qapplication.h:32
QApplication::exec
static int exec()
Enters the main event loop and waits until exit() is called, then returns the value that was set to e...
Definition
qapplication.cpp:2560
QTextEdit
The QTextEdit class provides a widget that is used to edit and display both plain and rich text.
Definition
qtextedit.h:27
main
int main()
[0]
Definition
doc_src_objecttrees.cpp:5
filterobject.h
filter
GLint GLint GLint GLint GLint GLint GLint GLbitfield GLenum filter
Definition
qopengles2ext.h:893
app
QApplication app(argc, argv)
[0]
qtbase
src
corelib
doc
snippets
eventfilters
main.cpp
Generated by
1.10.0