Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
Go to the source code of this file.
Classes | |
class | MainWindow |
[5] More... | |
class | MyObject |
[7] More... | |
class | KeyPressEater |
[14] More... | |
class | MyWidget |
[23] More... | |
class | MyClass |
[4] More... | |
class | QItemSelectionModel |
[38] More... | |
Functions | |
obj | metaObject () -> className() |
QPushButton::staticMetaObject | className () |
[1] | |
timer | inherits ("QTimer") |
timer | inherits ("QObject") |
timer | inherits ("QAbstractButton") |
layout | inherits ("QLayoutItem") |
qDebug ("MyClass::setPrecision(): (%s) invalid precision %f", qPrintable(objectName()), newPrecision) | |
[4] | |
myObject | moveToThread (QApplication::instance() ->thread()) |
[6] | |
monitoredObj | installEventFilter (filterObj) |
[13] | |
pushButton | installEventFilter (keyPressEater) |
if (receivers(SIGNAL(valueChanged(QByteArray))) > 0) | |
[21] | |
myObject | disconnect () |
[26] | |
disconnect (myObject, SIGNAL(mySignal()), nullptr, nullptr) | |
[27] | |
myObject | disconnect (SIGNAL(mySignal())) |
[28] | |
disconnect (myObject, nullptr, myReceiver, nullptr) | |
[29] | |
myObject | disconnect (myReceiver) |
[30] | |
if (signal==QMetaMethod::fromSignal(&MyObject::valueChanged)) | |
[31] | |
void on_< object name > | _< signal name > (< signal parameters >) |
[32] | |
void | on_button1_clicked () |
[33] | |
void | someFunction () |
[44] | |
socket | connectToHost ("qt-project.org", 80) |
disconnect (myObject, &MyObject::mySignal(), nullptr, nullptr) | |
[46] | |
if (isSignalConnected(valueChangedSignal)) | |
someQObject | blockSignals (wasBlocked) |
someQObject blockSignals | ( | wasBlocked | ) |
QPushButton::staticMetaObject className | ( | ) |
socket connectToHost | ( | "qt-project.org" | , |
80 | ) |
myObject disconnect | ( | ) |
[26]
A helper class for iterating over a model that might change.
[27]
When populating the ListView from a model under normal circumstances, we would iterate over the range of model indices correspondning to the visual range, and basically call createItem(index++) in order to create each item.
This will also emit Component.onCompleted() for each item, which might do some weird things... For instance, it might remove itself from the model, and this might change model count and the indices of the other subsequent entries in the model.
This class takes such changes to the model into consideration while iterating, and will adjust the iterator index and keep track of whether the iterator has reached the end of the range.
It keeps track of changes to the model by connecting to QQmlInstanceModel::modelUpdated() from its constructor. When destroyed, it will automatically disconnect. You can explicitly disconnect earlier by calling
myObject disconnect | ( | myReceiver | ) |
[30]
[31]
if | ( | isSignalConnected(valueChangedSignal) | ) |
Definition at line 401 of file src_corelib_kernel_qobject.cpp.
if | ( | receivers(SIGNAL(valueChanged(QByteArray))) | , |
0 | ) |
[21]
Definition at line 192 of file src_corelib_kernel_qobject.cpp.
if | ( | signal | = = QMetaMethod::fromSignal(&MyObject::valueChanged) | ) |
timer inherits | ( | "QAbstractButton" | ) |
layout inherits | ( | "QLayoutItem" | ) |
layout inherits | ( | "QObject" | ) |
timer inherits | ( | "QTimer" | ) |
monitoredObj installEventFilter | ( | filterObj | ) |
[13]
[14]
listView installEventFilter | ( | keyPressEater | ) |
myObject moveToThread | ( | QApplication::instance() ->thread() | ) |
[6]
[7]
void on_button1_clicked | ( | ) |
[33]
[34]
qDebug | ( | "MyClass::setPrecision(): (%s) invalid precision %f" | , |
qPrintable(objectName()) | , | ||
newPrecision | ) |
[4]
[5]
void someFunction | ( | ) |
[44]
[0]
[49]
[45]
[50]
[44]
Definition at line 5 of file src_corelib_thread_qfuturesynchronizer.cpp.
QObject::connect __pad0__ |
QList< QPushButton * > allPButtons = parentWidget.findChildren<QPushButton *>() |
QPushButton* button = qobject_cast<QAbstractButton *>(obj) |
QList< QPushButton * > childButtons = parentWidget.findChildren<QPushButton *>(Qt::FindDirectChildrenOnly) |
const auto id = Qt::TimerId{obj->startTimer(100ms)} |
[54]
Definition at line 468 of file src_corelib_kernel_qobject.cpp.
KeyPressEater * keyPressEater = new KeyPressEater(this) |
QFormLayout * layout = new QVBoxLayout |
Definition at line 38 of file src_corelib_kernel_qobject.cpp.
Definition at line 370 of file src_corelib_kernel_qobject.cpp.
QListWidget* list = parentWidget->findChild<QListWidget *>() |
Definition at line 175 of file src_corelib_kernel_qobject.cpp.
return nullptr |
Definition at line 246 of file src_corelib_kernel_qobject.cpp.
QObject* obj = new QPushButton |
QByteArray page = ... |
[45]
[50]
[46]
[51]
Definition at line 382 of file src_corelib_kernel_qobject.cpp.
Referenced by QAccessibleQuickPage::QAccessibleQuickPage().
QGraphicsWidget * pushButton = new QPushButton(this) |
Definition at line 174 of file src_corelib_kernel_qobject.cpp.
QScrollBar * scrollBar = new QScrollBar |
Definition at line 202 of file src_corelib_kernel_qobject.cpp.
QSslSocket socket = new QTcpSocket |
QTimer * timer = qobject_cast<QTimer *>(obj) |
|
readwrite |
|
static |
const bool wasBlocked = someQObject->blockSignals(true) |