本文整理汇总了C++中QBuffer::blockSignals方法的典型用法代码示例。如果您正苦于以下问题:C++ QBuffer::blockSignals方法的具体用法?C++ QBuffer::blockSignals怎么用?C++ QBuffer::blockSignals使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类QBuffer
的用法示例。
在下文中一共展示了QBuffer::blockSignals方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: QBuffer
QDataStream::QDataStream(QByteArray *a, QIODevice::OpenMode flags)
{
QBuffer *buf = new QBuffer(a);
#ifndef QT_NO_QOBJECT
buf->blockSignals(true);
#endif
buf->open(flags);
dev = buf;
owndev = true;
byteorder = BigEndian;
ver = DefaultStreamVersion;
noswap = QSysInfo::ByteOrder == QSysInfo::BigEndian;
q_status = Ok;
}
示例2: QDataStream
/*!
Constructs a read-only data stream that operates on byte array \a a.
Use QDataStream(QByteArray*, int) if you want to write to a byte
array.
Since QByteArray is not a QIODevice subclass, internally a QBuffer
is created to wrap the byte array.
*/
QDataStream::QDataStream(const QByteArray &a)
{
QBuffer *buf = new QBuffer;
#ifndef QT_NO_QOBJECT
buf->blockSignals(true);
#endif
buf->setData(a);
buf->open(QIODevice::ReadOnly);
dev = buf;
owndev = true;
byteorder = BigEndian;
ver = DefaultStreamVersion;
noswap = QSysInfo::ByteOrder == QSysInfo::BigEndian;
q_status = Ok;
}