Qt
6.x
The Qt SDK
Loading...
Searching...
No Matches
signalsandslots.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 SIGNALSANDSLOTS_H
5
#define SIGNALSANDSLOTS_H
6
7
#define Counter PlainCounter
8
10
class
Counter
11
{
12
public
:
13
Counter
() { m_value = 0; }
14
15
int
value
()
const
{
return
m_value; }
16
void
setValue
(
int
value
);
17
18
private
:
19
int
m_value;
20
};
22
23
#undef Counter
24
#define Counter ObjectCounter
25
27
#include <QObject>
29
31
class
Counter
:
public
QObject
33
{
34
Q_OBJECT
35
36
public
:
37
Counter
() { m_value = 0; }
38
39
int
value
()
const
{
return
m_value; }
40
41
public
slots
:
42
void
setValue
(
int
value
);
43
44
signals
:
45
void
valueChanged
(
int
newValue);
46
47
private
:
48
int
m_value;
49
};
51
52
#endif
Counter
[0]
Definition
signalsandslots.h:11
Counter::Counter
Counter()
Definition
signalsandslots.h:13
Counter::valueChanged
void valueChanged(int newValue)
Counter::value
int value() const
Definition
signalsandslots.h:15
Counter::setValue
void setValue(int value)
QObject
\inmodule QtCore
Definition
qobject.h:90
value
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
Definition
qeglstreamconvenience_p.h:46
Q_OBJECT
#define Q_OBJECT
Definition
qtmetamacros.h:117
slots
#define slots
Definition
qtmetamacros.h:40
signals
#define signals
Definition
qtmetamacros.h:41
setValue
settings setValue("DataPump/bgcolor", color)
qtbase
src
corelib
doc
snippets
signalsandslots
signalsandslots.h
Generated by
1.9.7