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
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
11{
12public:
13 Counter() { m_value = 0; }
14
15 int value() const { return m_value; }
16 void setValue(int value);
17
18private:
19 int m_value;
20};
22
23#undef Counter
24#define Counter ObjectCounter
25
27#include <QObject>
29
31class Counter : public QObject
33{
35
36public:
37 Counter() { m_value = 0; }
38
39 int value() const { return m_value; }
40
41public slots:
42 void setValue(int value);
43
45 void valueChanged(int newValue);
46
47private:
48 int m_value;
49};
51
52#endif
void valueChanged(int newValue)
int value() const
void setValue(int value)
\inmodule QtCore
Definition qobject.h:103
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
#define Q_OBJECT
#define slots
#define signals
settings setValue("DataPump/bgcolor", color)