53 obj->metaObject()->className();
55 QPushButton::staticMetaObject.className();
60 QPushButton::staticMetaObject.className();
63 obj->metaObject()->className();
92 qDebug(
"MyClass::setPrecision(): (%s) invalid precision %f",
93 qPrintable(objectName()), newPrecision);
115 textEdit->installEventFilter(
this);
120 if (
obj == textEdit) {
123 qDebug() <<
"Ate key press" << keyEvent->
key();
160 using namespace std::chrono;
174 qDebug() <<
"Timer ID:" <<
event->timerId();
207 monitoredObj->installEventFilter(filterObj);
225 qDebug(
"Ate key press %d", keyEvent->
key());
248 QLabel *senderLabel =
new QLabel(
tr(
"Name:"));
249 QLabel *recipientLabel =
new QLabel(
tr(
"Name:",
"recipient"));
261 n == 1 ?
tr(
"%n message saved") :
tr(
"%n messages saved")
273 get_the_value(&
data);
313 this,
SIGNAL(buttonClicked()));
435 hostNameLabel->setText(
tr(
"Name:"));
456 QLabel *
label =
new QLabel;
490 data = get_the_value();
bool eventFilter(QObject *obj, QEvent *event) override
bool event(QEvent *event) override
bool eventFilter(QObject *obj, QEvent *ev) override
MyClass(QObject *parent=nullptr)
MyClass(QWidget *parent=nullptr)
bool event(QEvent *ev) override
void timerEvent(QTimerEvent *event) override
virtual void connectToHost(const QString &hostName, quint16 port, OpenMode mode=ReadWrite, NetworkLayerProtocol protocol=AnyIPProtocol)
The QByteArray class provides an array of bytes.
static QCoreApplication * instance()
The QEvent class is the base class of all event classes. Event objects contain event parameters.
qint64 write(const char *data, qint64 len)
The QKeyEvent class describes a key event.
void setText(const QString &)
The QLineEdit widget is a one-line text editor.
void textChanged(const QString &)
The QListView class provides a list or icon view onto a model.
The QMainWindow class provides a main application window.\inmodule QtWidgets.
void setCentralWidget(QWidget *widget)
The QObject class is the base class of all Qt objects.
int startTimer(int interval, Qt::TimerType timerType=Qt::CoarseTimer)
Q_INVOKABLE QObject(QObject *parent=nullptr)
T findChild(const QString &aName=QString(), Qt::FindChildOptions options=Qt::FindChildrenRecursively) const
bool isSignalConnected(const QMetaMethod &signal) const
void moveToThread(QThread *thread)
static QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
virtual bool event(QEvent *event)
virtual bool eventFilter(QObject *watched, QEvent *event)
static bool disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *member)
int receivers(const char *signal) const
bool inherits(const char *classname) const
Exception-safe wrapper around QObject::blockSignals().
The QString class provides a Unicode character string.
The QTcpSocket class provides a TCP socket.
The QTextEdit class provides a widget that is used to edit and display both plain and rich text.
The QTimerEvent class contains parameters that describe a timer event.
The QTimer class provides repetitive and single-shot timers.
The QVBoxLayout class lines up widgets vertically.
myinstance setPriority(MyClass::VeryHigh)
QList< QVariant > arguments
auto it unsigned count const
std::chrono::milliseconds ms
EGLOutputLayerEXT EGLint EGLAttrib value
#define Q_DECLARE_FLAGS(Flags, Enum)
GLuint GLsizei const GLchar * label
[43]
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
GLfloat GLfloat GLfloat GLfloat h
QList< QPushButton * > childButtons
[42]
const bool wasBlocked
[explicit tr context]
QAbstractButton * button
[9]
void on_button1_clicked()
[33]
QList< QWidget * > widgets
[11]
showMessage(tr("%n message(s) saved", "", n))
QList< QObject * > list
[8]
KeyPressEater * keyPressEater
[15]
QList< QPushButton * > allPButtons
[12]
qDebug("MyClass::setPrecision(): (%s) invalid precision %f", qPrintable(objectName()), newPrecision)
[4]
if(receivers(SIGNAL(valueChanged(QByteArray))) > 0)
[20]
void on_< object name > _< signal name >(< signal parameters >)
[32]
constexpr const auto messages
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent