Skip to main content

QFile

Struct QFile 

Source
pub struct QFile { /* private fields */ }
Expand description

C++ class: QFile.

Implementations§

Source§

impl QFile

Source

pub unsafe fn copy_mut(&self, new_name: impl CastInto<Ref<QString>>) -> bool

Calls C++ function: bool QFile::copy(const QString& newName).

Source

pub unsafe fn copy( file_name: impl CastInto<Ref<QString>>, new_name: impl CastInto<Ref<QString>>, ) -> bool

Calls C++ function: static bool QFile::copy(const QString& fileName, const QString& newName).

Source

pub unsafe fn decode_name_q_byte_array( local_file_name: impl CastInto<Ref<QByteArray>>, ) -> CppBox<QString>

Calls C++ function: static QString QFile::decodeName(const QByteArray& localFileName).

Source

pub unsafe fn decode_name_char( local_file_name: *const c_char, ) -> CppBox<QString>

Calls C++ function: static QString QFile::decodeName(const char* localFileName).

Source

pub unsafe fn encode_name( file_name: impl CastInto<Ref<QString>>, ) -> CppBox<QByteArray>

Calls C++ function: static QByteArray QFile::encodeName(const QString& fileName).

Source

pub unsafe fn exists_0a(&self) -> bool

Calls C++ function: bool QFile::exists() const.

Source

pub unsafe fn exists_1a(file_name: impl CastInto<Ref<QString>>) -> bool

Calls C++ function: static bool QFile::exists(const QString& fileName).

Source

pub unsafe fn file_name(&self) -> CppBox<QString>

Calls C++ function: virtual QString QFile::fileName() const.

Calls C++ function: bool QFile::link(const QString& newName).

Calls C++ function: static bool QFile::link(const QString& oldname, const QString& newName).

Source

pub unsafe fn meta_object(&self) -> Ptr<QMetaObject>

Calls C++ function: virtual const QMetaObject* QFile::metaObject() const.

Source

pub unsafe fn move_to_trash_0a(&self) -> bool

Calls C++ function: bool QFile::moveToTrash().

Source

pub unsafe fn move_to_trash_2a( file_name: impl CastInto<Ref<QString>>, path_in_trash: impl CastInto<Ptr<QString>>, ) -> bool

Calls C++ function: static bool QFile::moveToTrash(const QString& fileName, QString* pathInTrash = …).

Source

pub unsafe fn move_to_trash_1a(file_name: impl CastInto<Ref<QString>>) -> bool

Calls C++ function: static bool QFile::moveToTrash(const QString& fileName).

Source

pub unsafe fn new() -> QBox<QFile>

Calls C++ function: [constructor] void QFile::QFile().

Source

pub unsafe fn from_q_string(name: impl CastInto<Ref<QString>>) -> QBox<QFile>

Calls C++ function: [constructor] void QFile::QFile(const QString& name).

Source

pub unsafe fn from_q_object(parent: impl CastInto<Ptr<QObject>>) -> QBox<QFile>

Calls C++ function: [constructor] void QFile::QFile(QObject* parent).

Source

pub unsafe fn from_q_string_q_object( name: impl CastInto<Ref<QString>>, parent: impl CastInto<Ptr<QObject>>, ) -> QBox<QFile>

Calls C++ function: [constructor] void QFile::QFile(const QString& name, QObject* parent).

Source

pub unsafe fn open_1a(&self, flags: QFlags<OpenModeFlag>) -> bool

Calls C++ function: virtual bool QFile::open(QFlags<QIODevice::OpenModeFlag> flags).

Source

pub unsafe fn open_3a( &self, fd: c_int, io_flags: QFlags<OpenModeFlag>, handle_flags: QFlags<FileHandleFlag>, ) -> bool

Calls C++ function: bool QFile::open(int fd, QFlags<QIODevice::OpenModeFlag> ioFlags, QFlags<QFileDevice::FileHandleFlag> handleFlags = …).

Source

pub unsafe fn open_2a(&self, fd: c_int, io_flags: QFlags<OpenModeFlag>) -> bool

Calls C++ function: bool QFile::open(int fd, QFlags<QIODevice::OpenModeFlag> ioFlags).

Source

pub unsafe fn permissions_0a(&self) -> QFlags<Permission>

Calls C++ function: virtual QFlags<QFileDevice::Permission> QFile::permissions() const.

Source

pub unsafe fn permissions_1a( filename: impl CastInto<Ref<QString>>, ) -> QFlags<Permission>

Calls C++ function: static QFlags<QFileDevice::Permission> QFile::permissions(const QString& filename).

Source

pub unsafe fn qt_metacall( &self, arg1: Call, arg2: c_int, arg3: *mut *mut c_void, ) -> c_int

Calls C++ function: virtual int QFile::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3).

Source

pub unsafe fn qt_metacast(&self, arg1: *const c_char) -> *mut c_void

Calls C++ function: virtual void* QFile::qt_metacast(const char* arg1).

Calls C++ function: QString QFile::readLink() const.

Calls C++ function: static QString QFile::readLink(const QString& fileName).

Source

pub unsafe fn remove_mut(&self) -> bool

Calls C++ function: bool QFile::remove().

Source

pub unsafe fn remove(file_name: impl CastInto<Ref<QString>>) -> bool

Calls C++ function: static bool QFile::remove(const QString& fileName).

Source

pub unsafe fn rename_mut(&self, new_name: impl CastInto<Ref<QString>>) -> bool

Calls C++ function: bool QFile::rename(const QString& newName).

Source

pub unsafe fn rename( old_name: impl CastInto<Ref<QString>>, new_name: impl CastInto<Ref<QString>>, ) -> bool

Calls C++ function: static bool QFile::rename(const QString& oldName, const QString& newName).

Source

pub unsafe fn resize_mut(&self, sz: c_longlong) -> bool

Calls C++ function: virtual bool QFile::resize(long long sz).

Source

pub unsafe fn resize( filename: impl CastInto<Ref<QString>>, sz: c_longlong, ) -> bool

Calls C++ function: static bool QFile::resize(const QString& filename, long long sz).

Source

pub unsafe fn set_file_name(&self, name: impl CastInto<Ref<QString>>)

Calls C++ function: void QFile::setFileName(const QString& name).

Source

pub unsafe fn set_permissions_mut( &self, permission_spec: QFlags<Permission>, ) -> bool

Calls C++ function: virtual bool QFile::setPermissions(QFlags<QFileDevice::Permission> permissionSpec).

Source

pub unsafe fn set_permissions( filename: impl CastInto<Ref<QString>>, permission_spec: QFlags<Permission>, ) -> bool

Calls C++ function: static bool QFile::setPermissions(const QString& filename, QFlags<QFileDevice::Permission> permissionSpec).

Source

pub unsafe fn size(&self) -> c_longlong

Calls C++ function: virtual long long QFile::size() const.

Source

pub unsafe fn static_meta_object() -> Ref<QMetaObject>

Returns a reference to the staticMetaObject field.

Calls C++ function: QString QFile::symLinkTarget() const.

Calls C++ function: static QString QFile::symLinkTarget(const QString& fileName).

Source

pub unsafe fn tr( s: *const c_char, c: *const c_char, n: c_int, ) -> CppBox<QString>

Calls C++ function: static QString QFile::tr(const char* s, const char* c, int n).

Source

pub unsafe fn tr_utf8( s: *const c_char, c: *const c_char, n: c_int, ) -> CppBox<QString>

Calls C++ function: static QString QFile::trUtf8(const char* s, const char* c, int n).

Methods from Deref<Target = QFileDevice>§

Source

pub unsafe fn at_end(&self) -> bool

Calls C++ function: virtual bool QFileDevice::atEnd() const.

Source

pub unsafe fn close(&self)

Calls C++ function: virtual void QFileDevice::close().

Source

pub unsafe fn error(&self) -> FileError

Calls C++ function: QFileDevice::FileError QFileDevice::error() const.

Source

pub unsafe fn file_name(&self) -> CppBox<QString>

Calls C++ function: virtual QString QFileDevice::fileName() const.

Source

pub unsafe fn file_time(&self, time: FileTime) -> CppBox<QDateTime>

Calls C++ function: QDateTime QFileDevice::fileTime(QFileDevice::FileTime time) const.

Source

pub unsafe fn flush(&self) -> bool

Calls C++ function: bool QFileDevice::flush().

Source

pub unsafe fn handle(&self) -> c_int

Calls C++ function: int QFileDevice::handle() const.

Source

pub unsafe fn is_sequential(&self) -> bool

Calls C++ function: virtual bool QFileDevice::isSequential() const.

Source

pub unsafe fn map_3a( &self, offset: c_longlong, size: c_longlong, flags: MemoryMapFlags, ) -> *mut c_uchar

Calls C++ function: unsigned char* QFileDevice::map(long long offset, long long size, QFileDevice::MemoryMapFlags flags = …).

Source

pub unsafe fn map_2a( &self, offset: c_longlong, size: c_longlong, ) -> *mut c_uchar

Calls C++ function: unsigned char* QFileDevice::map(long long offset, long long size).

Source

pub unsafe fn meta_object(&self) -> Ptr<QMetaObject>

Calls C++ function: virtual const QMetaObject* QFileDevice::metaObject() const.

Source

pub unsafe fn permissions(&self) -> QFlags<Permission>

Calls C++ function: virtual QFlags<QFileDevice::Permission> QFileDevice::permissions() const.

Source

pub unsafe fn pos(&self) -> c_longlong

Calls C++ function: virtual long long QFileDevice::pos() const.

Source

pub unsafe fn qt_metacall( &self, arg1: Call, arg2: c_int, arg3: *mut *mut c_void, ) -> c_int

Calls C++ function: virtual int QFileDevice::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3).

Source

pub unsafe fn qt_metacast(&self, arg1: *const c_char) -> *mut c_void

Calls C++ function: virtual void* QFileDevice::qt_metacast(const char* arg1).

Source

pub unsafe fn resize(&self, sz: c_longlong) -> bool

Calls C++ function: virtual bool QFileDevice::resize(long long sz).

Source

pub unsafe fn seek(&self, offset: c_longlong) -> bool

Calls C++ function: virtual bool QFileDevice::seek(long long offset).

Source

pub unsafe fn set_file_time( &self, new_date: impl CastInto<Ref<QDateTime>>, file_time: FileTime, ) -> bool

Calls C++ function: bool QFileDevice::setFileTime(const QDateTime& newDate, QFileDevice::FileTime fileTime).

Source

pub unsafe fn set_permissions( &self, permission_spec: QFlags<Permission>, ) -> bool

Calls C++ function: virtual bool QFileDevice::setPermissions(QFlags<QFileDevice::Permission> permissionSpec).

Source

pub unsafe fn size(&self) -> c_longlong

Calls C++ function: virtual long long QFileDevice::size() const.

Source

pub unsafe fn unmap(&self, address: *mut c_uchar) -> bool

Calls C++ function: bool QFileDevice::unmap(unsigned char* address).

Source

pub unsafe fn unset_error(&self)

Calls C++ function: void QFileDevice::unsetError().

Methods from Deref<Target = QIODevice>§

Source

pub fn ready_read(&self) -> Signal<()>

Returns a built-in Qt signal QIODevice::readyRead that can be passed to qt_core::Signal::connect.

Source

pub fn channel_ready_read(&self) -> Signal<(c_int,)>

Returns a built-in Qt signal QIODevice::channelReadyRead that can be passed to qt_core::Signal::connect.

Source

pub fn bytes_written(&self) -> Signal<(c_longlong,)>

Returns a built-in Qt signal QIODevice::bytesWritten that can be passed to qt_core::Signal::connect.

Source

pub fn channel_bytes_written(&self) -> Signal<(c_int, c_longlong)>

Returns a built-in Qt signal QIODevice::channelBytesWritten that can be passed to qt_core::Signal::connect.

Source

pub fn about_to_close(&self) -> Signal<()>

Returns a built-in Qt signal QIODevice::aboutToClose that can be passed to qt_core::Signal::connect.

Source

pub fn read_channel_finished(&self) -> Signal<()>

Returns a built-in Qt signal QIODevice::readChannelFinished that can be passed to qt_core::Signal::connect.

Source

pub unsafe fn at_end(&self) -> bool

Calls C++ function: virtual bool QIODevice::atEnd() const.

Source

pub unsafe fn bytes_available(&self) -> c_longlong

Calls C++ function: virtual long long QIODevice::bytesAvailable() const.

Source

pub unsafe fn bytes_to_write(&self) -> c_longlong

Calls C++ function: virtual long long QIODevice::bytesToWrite() const.

Source

pub unsafe fn can_read_line(&self) -> bool

Calls C++ function: virtual bool QIODevice::canReadLine() const.

Source

pub unsafe fn close(&self)

Calls C++ function: virtual void QIODevice::close().

Source

pub unsafe fn commit_transaction(&self)

Calls C++ function: void QIODevice::commitTransaction().

Source

pub unsafe fn current_read_channel(&self) -> c_int

Calls C++ function: int QIODevice::currentReadChannel() const.

Source

pub unsafe fn current_write_channel(&self) -> c_int

Calls C++ function: int QIODevice::currentWriteChannel() const.

Source

pub unsafe fn error_string(&self) -> CppBox<QString>

Calls C++ function: QString QIODevice::errorString() const.

Source

pub unsafe fn get_char(&self, c: *mut c_char) -> bool

Calls C++ function: bool QIODevice::getChar(char* c).

Source

pub unsafe fn is_open(&self) -> bool

Calls C++ function: bool QIODevice::isOpen() const.

Source

pub unsafe fn is_readable(&self) -> bool

Calls C++ function: bool QIODevice::isReadable() const.

Source

pub unsafe fn is_sequential(&self) -> bool

Calls C++ function: virtual bool QIODevice::isSequential() const.

Source

pub unsafe fn is_text_mode_enabled(&self) -> bool

Calls C++ function: bool QIODevice::isTextModeEnabled() const.

Source

pub unsafe fn is_transaction_started(&self) -> bool

Calls C++ function: bool QIODevice::isTransactionStarted() const.

Source

pub unsafe fn is_writable(&self) -> bool

Calls C++ function: bool QIODevice::isWritable() const.

Source

pub unsafe fn meta_object(&self) -> Ptr<QMetaObject>

Calls C++ function: virtual const QMetaObject* QIODevice::metaObject() const.

Source

pub unsafe fn open(&self, mode: QFlags<OpenModeFlag>) -> bool

Calls C++ function: virtual bool QIODevice::open(QFlags<QIODevice::OpenModeFlag> mode).

Source

pub unsafe fn open_mode(&self) -> QFlags<OpenModeFlag>

Calls C++ function: QFlags<QIODevice::OpenModeFlag> QIODevice::openMode() const.

Source

pub unsafe fn peek_2a( &self, data: *mut c_char, maxlen: c_longlong, ) -> c_longlong

Calls C++ function: long long QIODevice::peek(char* data, long long maxlen).

Source

pub unsafe fn peek_1a(&self, maxlen: c_longlong) -> CppBox<QByteArray>

Calls C++ function: QByteArray QIODevice::peek(long long maxlen).

Source

pub unsafe fn pos(&self) -> c_longlong

Calls C++ function: virtual long long QIODevice::pos() const.

Source

pub unsafe fn put_char(&self, c: c_char) -> bool

Calls C++ function: bool QIODevice::putChar(char c).

Source

pub unsafe fn qt_metacall( &self, arg1: Call, arg2: c_int, arg3: *mut *mut c_void, ) -> c_int

Calls C++ function: virtual int QIODevice::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3).

Source

pub unsafe fn qt_metacast(&self, arg1: *const c_char) -> *mut c_void

Calls C++ function: virtual void* QIODevice::qt_metacast(const char* arg1).

Source

pub unsafe fn read_2a( &self, data: *mut c_char, maxlen: c_longlong, ) -> c_longlong

Calls C++ function: long long QIODevice::read(char* data, long long maxlen).

Source

pub unsafe fn read_1a(&self, maxlen: c_longlong) -> CppBox<QByteArray>

Calls C++ function: QByteArray QIODevice::read(long long maxlen).

Source

pub unsafe fn read_all(&self) -> CppBox<QByteArray>

Calls C++ function: QByteArray QIODevice::readAll().

Source

pub unsafe fn read_channel_count(&self) -> c_int

Calls C++ function: int QIODevice::readChannelCount() const.

Source

pub unsafe fn read_line_2a( &self, data: *mut c_char, maxlen: c_longlong, ) -> c_longlong

Calls C++ function: long long QIODevice::readLine(char* data, long long maxlen).

Source

pub unsafe fn read_line_1a(&self, maxlen: c_longlong) -> CppBox<QByteArray>

Calls C++ function: QByteArray QIODevice::readLine(long long maxlen = …).

Source

pub unsafe fn read_line_0a(&self) -> CppBox<QByteArray>

Calls C++ function: QByteArray QIODevice::readLine().

Source

pub unsafe fn reset(&self) -> bool

Calls C++ function: virtual bool QIODevice::reset().

Source

pub unsafe fn rollback_transaction(&self)

Calls C++ function: void QIODevice::rollbackTransaction().

Source

pub unsafe fn seek(&self, pos: c_longlong) -> bool

Calls C++ function: virtual bool QIODevice::seek(long long pos).

Source

pub unsafe fn set_current_read_channel(&self, channel: c_int)

Calls C++ function: void QIODevice::setCurrentReadChannel(int channel).

Source

pub unsafe fn set_current_write_channel(&self, channel: c_int)

Calls C++ function: void QIODevice::setCurrentWriteChannel(int channel).

Source

pub unsafe fn set_text_mode_enabled(&self, enabled: bool)

Calls C++ function: void QIODevice::setTextModeEnabled(bool enabled).

Source

pub unsafe fn size(&self) -> c_longlong

Calls C++ function: virtual long long QIODevice::size() const.

Source

pub unsafe fn skip(&self, max_size: c_longlong) -> c_longlong

Calls C++ function: long long QIODevice::skip(long long maxSize).

Source

pub unsafe fn start_transaction(&self)

Calls C++ function: void QIODevice::startTransaction().

Source

pub unsafe fn unget_char(&self, c: c_char)

Calls C++ function: void QIODevice::ungetChar(char c).

Source

pub unsafe fn wait_for_bytes_written(&self, msecs: c_int) -> bool

Calls C++ function: virtual bool QIODevice::waitForBytesWritten(int msecs).

Source

pub unsafe fn wait_for_ready_read(&self, msecs: c_int) -> bool

Calls C++ function: virtual bool QIODevice::waitForReadyRead(int msecs).

Source

pub unsafe fn write_char_longlong( &self, data: *const c_char, len: c_longlong, ) -> c_longlong

Calls C++ function: long long QIODevice::write(const char* data, long long len).

Source

pub unsafe fn write_char(&self, data: *const c_char) -> c_longlong

Calls C++ function: long long QIODevice::write(const char* data).

Source

pub unsafe fn write_q_byte_array( &self, data: impl CastInto<Ref<QByteArray>>, ) -> c_longlong

Calls C++ function: long long QIODevice::write(const QByteArray& data).

Source

pub unsafe fn write_channel_count(&self) -> c_int

Calls C++ function: int QIODevice::writeChannelCount() const.

Methods from Deref<Target = QObject>§

Source

pub unsafe fn find_child<T>( &self, name: &str, ) -> Result<QPtr<T>, FindChildError>

Finds a child of self with the specified object name and casts it to type T.

The search is performed recursively. If there is more than one child matching the search, the most direct ancestor is returned. If there are several direct ancestors, it is undefined which one will be returned.

Returns an error if there is no child object with object name name or the found object cannot be cast to T.

Source

pub fn destroyed(&self) -> Signal<(*mut QObject,)>

Returns a built-in Qt signal QObject::destroyed that can be passed to qt_core::Signal::connect.

Source

pub fn object_name_changed(&self) -> Signal<(*const QString,)>

Returns a built-in Qt signal QObject::objectNameChanged that can be passed to qt_core::Signal::connect.

Source

pub fn slot_delete_later(&self) -> Receiver<()>

Returns a built-in Qt slot QObject::deleteLater that can be passed to qt_core::Signal::connect.

Source

pub unsafe fn block_signals(&self, b: bool) -> bool

Calls C++ function: bool QObject::blockSignals(bool b).

Source

pub unsafe fn children(&self) -> Ref<QListOfQObject>

Calls C++ function: const QList<QObject*>& QObject::children() const.

Source

pub unsafe fn delete_later(&self)

Calls C++ function: [slot] void QObject::deleteLater().

Source

pub unsafe fn disconnect_char_q_object_char( &self, signal: *const c_char, receiver: impl CastInto<Ptr<QObject>>, member: *const c_char, ) -> bool

Calls C++ function: bool QObject::disconnect(const char* signal = …, const QObject* receiver = …, const char* member = …) const.

Source

pub unsafe fn disconnect_q_object_char( &self, receiver: impl CastInto<Ptr<QObject>>, member: *const c_char, ) -> bool

Calls C++ function: bool QObject::disconnect(const QObject* receiver, const char* member = …) const.

Source

pub unsafe fn disconnect_char_q_object( &self, signal: *const c_char, receiver: impl CastInto<Ptr<QObject>>, ) -> bool

Calls C++ function: bool QObject::disconnect(const char* signal = …, const QObject* receiver = …) const.

Source

pub unsafe fn disconnect_char(&self, signal: *const c_char) -> bool

Calls C++ function: bool QObject::disconnect(const char* signal = …) const.

Source

pub unsafe fn disconnect(&self) -> bool

Calls C++ function: bool QObject::disconnect() const.

Source

pub unsafe fn disconnect_q_object( &self, receiver: impl CastInto<Ptr<QObject>>, ) -> bool

Calls C++ function: bool QObject::disconnect(const QObject* receiver) const.

Source

pub unsafe fn dump_object_info_mut(&self)

Calls C++ function: void QObject::dumpObjectInfo().

Source

pub unsafe fn dump_object_info(&self)

Calls C++ function: void QObject::dumpObjectInfo() const.

Source

pub unsafe fn dump_object_tree_mut(&self)

Calls C++ function: void QObject::dumpObjectTree().

Source

pub unsafe fn dump_object_tree(&self)

Calls C++ function: void QObject::dumpObjectTree() const.

Source

pub unsafe fn dynamic_property_names(&self) -> CppBox<QListOfQByteArray>

Calls C++ function: QList<QByteArray> QObject::dynamicPropertyNames() const.

Source

pub unsafe fn eq(&self, p: impl CastInto<Ref<QPointerOfQObject>>) -> bool

Calls C++ function: bool operator==(QObject* o, const QPointer<QObject>& p).

Source

pub unsafe fn event(&self, event: impl CastInto<Ptr<QEvent>>) -> bool

Calls C++ function: virtual bool QObject::event(QEvent* event).

Source

pub unsafe fn event_filter( &self, watched: impl CastInto<Ptr<QObject>>, event: impl CastInto<Ptr<QEvent>>, ) -> bool

Calls C++ function: virtual bool QObject::eventFilter(QObject* watched, QEvent* event).

Source

pub unsafe fn find_child_q_object_2a( &self, a_name: impl CastInto<Ref<QString>>, options: QFlags<FindChildOption>, ) -> QPtr<QObject>

Calls C++ function: QObject* QObject::findChild<QObject*>(const QString& aName = …, QFlags<Qt::FindChildOption> options = …) const.

Source

pub unsafe fn find_child_q_object_1a( &self, a_name: impl CastInto<Ref<QString>>, ) -> QPtr<QObject>

Calls C++ function: QObject* QObject::findChild<QObject*>(const QString& aName = …) const.

Source

pub unsafe fn find_child_q_object_0a(&self) -> QPtr<QObject>

Calls C++ function: QObject* QObject::findChild<QObject*>() const.

Source

pub unsafe fn find_children_q_object_q_string_q_flags_find_child_option( &self, a_name: impl CastInto<Ref<QString>>, options: QFlags<FindChildOption>, ) -> CppBox<QListOfQObject>

Calls C++ function: QList<QObject*> QObject::findChildren<QObject*>(const QString& aName = …, QFlags<Qt::FindChildOption> options = …) const.

Source

pub unsafe fn find_children_q_object_q_reg_exp_q_flags_find_child_option( &self, re: impl CastInto<Ref<QRegExp>>, options: QFlags<FindChildOption>, ) -> CppBox<QListOfQObject>

Calls C++ function: QList<QObject*> QObject::findChildren<QObject*>(const QRegExp& re, QFlags<Qt::FindChildOption> options = …) const.

Source

pub unsafe fn find_children_q_object_q_regular_expression_q_flags_find_child_option( &self, re: impl CastInto<Ref<QRegularExpression>>, options: QFlags<FindChildOption>, ) -> CppBox<QListOfQObject>

Calls C++ function: QList<QObject*> QObject::findChildren<QObject*>(const QRegularExpression& re, QFlags<Qt::FindChildOption> options = …) const.

Source

pub unsafe fn find_children_q_object_q_string( &self, a_name: impl CastInto<Ref<QString>>, ) -> CppBox<QListOfQObject>

Calls C++ function: QList<QObject*> QObject::findChildren<QObject*>(const QString& aName = …) const.

Source

pub unsafe fn find_children_q_object(&self) -> CppBox<QListOfQObject>

Calls C++ function: QList<QObject*> QObject::findChildren<QObject*>() const.

Source

pub unsafe fn find_children_q_object_q_reg_exp( &self, re: impl CastInto<Ref<QRegExp>>, ) -> CppBox<QListOfQObject>

Calls C++ function: QList<QObject*> QObject::findChildren<QObject*>(const QRegExp& re) const.

Source

pub unsafe fn find_children_q_object_q_regular_expression( &self, re: impl CastInto<Ref<QRegularExpression>>, ) -> CppBox<QListOfQObject>

Calls C++ function: QList<QObject*> QObject::findChildren<QObject*>(const QRegularExpression& re) const.

Source

pub unsafe fn inherits(&self, classname: *const c_char) -> bool

Calls C++ function: bool QObject::inherits(const char* classname) const.

Source

pub unsafe fn install_event_filter( &self, filter_obj: impl CastInto<Ptr<QObject>>, )

Calls C++ function: void QObject::installEventFilter(QObject* filterObj).

Source

pub unsafe fn is_widget_type(&self) -> bool

Calls C++ function: bool QObject::isWidgetType() const.

Source

pub unsafe fn is_window_type(&self) -> bool

Calls C++ function: bool QObject::isWindowType() const.

Source

pub unsafe fn kill_timer(&self, id: c_int)

Calls C++ function: void QObject::killTimer(int id).

Source

pub unsafe fn meta_object(&self) -> Ptr<QMetaObject>

Calls C++ function: virtual const QMetaObject* QObject::metaObject() const.

Source

pub unsafe fn move_to_thread(&self, thread: impl CastInto<Ptr<QThread>>)

Calls C++ function: void QObject::moveToThread(QThread* thread).

Source

pub unsafe fn object_name(&self) -> CppBox<QString>

Calls C++ function: QString QObject::objectName() const.

Source

pub unsafe fn parent(&self) -> QPtr<QObject>

Calls C++ function: QObject* QObject::parent() const.

Source

pub unsafe fn property(&self, name: *const c_char) -> CppBox<QVariant>

Calls C++ function: QVariant QObject::property(const char* name) const.

Source

pub unsafe fn qt_metacall( &self, arg1: Call, arg2: c_int, arg3: *mut *mut c_void, ) -> c_int

Calls C++ function: virtual int QObject::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3).

Source

pub unsafe fn qt_metacast(&self, arg1: *const c_char) -> *mut c_void

Calls C++ function: virtual void* QObject::qt_metacast(const char* arg1).

Source

pub unsafe fn remove_event_filter(&self, obj: impl CastInto<Ptr<QObject>>)

Calls C++ function: void QObject::removeEventFilter(QObject* obj).

Source

pub unsafe fn set_object_name(&self, name: impl CastInto<Ref<QString>>)

Calls C++ function: void QObject::setObjectName(const QString& name).

Source

pub unsafe fn set_parent(&self, parent: impl CastInto<Ptr<QObject>>)

Calls C++ function: void QObject::setParent(QObject* parent).

Source

pub unsafe fn set_property( &self, name: *const c_char, value: impl CastInto<Ref<QVariant>>, ) -> bool

Calls C++ function: bool QObject::setProperty(const char* name, const QVariant& value).

Source

pub unsafe fn signals_blocked(&self) -> bool

Calls C++ function: bool QObject::signalsBlocked() const.

Source

pub unsafe fn start_timer_2a( &self, interval: c_int, timer_type: TimerType, ) -> c_int

Calls C++ function: int QObject::startTimer(int interval, Qt::TimerType timerType = …).

Source

pub unsafe fn start_timer_1a(&self, interval: c_int) -> c_int

Calls C++ function: int QObject::startTimer(int interval).

Source

pub unsafe fn thread(&self) -> QPtr<QThread>

Calls C++ function: QThread* QObject::thread() const.

Trait Implementations§

Source§

impl CppDeletable for QFile

Source§

unsafe fn delete(&self)

Calls C++ function: virtual [destructor] void QFile::~QFile().

Source§

impl Deref for QFile

Source§

fn deref(&self) -> &QFileDevice

Calls C++ function: QFileDevice* static_cast<QFileDevice*>(QFile* ptr).

Source§

type Target = QFileDevice

The resulting type after dereferencing.
Source§

impl DynamicCast<QFile> for QFileDevice

Source§

unsafe fn dynamic_cast(ptr: Ptr<QFileDevice>) -> Ptr<QFile>

Calls C++ function: QFile* dynamic_cast<QFile*>(QFileDevice* ptr).

Source§

impl DynamicCast<QFile> for QIODevice

Source§

unsafe fn dynamic_cast(ptr: Ptr<QIODevice>) -> Ptr<QFile>

Calls C++ function: QFile* dynamic_cast<QFile*>(QIODevice* ptr).

Source§

impl DynamicCast<QFile> for QObject

Source§

unsafe fn dynamic_cast(ptr: Ptr<QObject>) -> Ptr<QFile>

Calls C++ function: QFile* dynamic_cast<QFile*>(QObject* ptr).

Source§

impl DynamicCast<QTemporaryFile> for QFile

Source§

unsafe fn dynamic_cast(ptr: Ptr<QFile>) -> Ptr<QTemporaryFile>

Calls C++ function: QTemporaryFile* dynamic_cast<QTemporaryFile*>(QFile* ptr).

Source§

impl Size for QFile

Source§

unsafe fn size(&self) -> usize

Calls C++ function: virtual long long QFile::size() const.

Source§

impl StaticDowncast<QFile> for QFileDevice

Source§

unsafe fn static_downcast(ptr: Ptr<QFileDevice>) -> Ptr<QFile>

Calls C++ function: QFile* static_cast<QFile*>(QFileDevice* ptr).

Source§

impl StaticDowncast<QFile> for QIODevice

Source§

unsafe fn static_downcast(ptr: Ptr<QIODevice>) -> Ptr<QFile>

Calls C++ function: QFile* static_cast<QFile*>(QIODevice* ptr).

Source§

impl StaticDowncast<QFile> for QObject

Source§

unsafe fn static_downcast(ptr: Ptr<QObject>) -> Ptr<QFile>

Calls C++ function: QFile* static_cast<QFile*>(QObject* ptr).

Source§

impl StaticDowncast<QTemporaryFile> for QFile

Source§

unsafe fn static_downcast(ptr: Ptr<QFile>) -> Ptr<QTemporaryFile>

Calls C++ function: QTemporaryFile* static_cast<QTemporaryFile*>(QFile* ptr).

Source§

impl StaticUpcast<QFile> for QTemporaryFile

Source§

unsafe fn static_upcast(ptr: Ptr<QTemporaryFile>) -> Ptr<QFile>

Calls C++ function: QFile* static_cast<QFile*>(QTemporaryFile* ptr).

Source§

impl StaticUpcast<QFileDevice> for QFile

Source§

unsafe fn static_upcast(ptr: Ptr<QFile>) -> Ptr<QFileDevice>

Calls C++ function: QFileDevice* static_cast<QFileDevice*>(QFile* ptr).

Source§

impl StaticUpcast<QIODevice> for QFile

Source§

unsafe fn static_upcast(ptr: Ptr<QFile>) -> Ptr<QIODevice>

Calls C++ function: QIODevice* static_cast<QIODevice*>(QFile* ptr).

Source§

impl StaticUpcast<QObject> for QFile

Source§

unsafe fn static_upcast(ptr: Ptr<QFile>) -> Ptr<QObject>

Calls C++ function: QObject* static_cast<QObject*>(QFile* ptr).

Auto Trait Implementations§

§

impl Freeze for QFile

§

impl RefUnwindSafe for QFile

§

impl Send for QFile

§

impl Sync for QFile

§

impl Unpin for QFile

§

impl UnsafeUnpin for QFile

§

impl UnwindSafe for QFile

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T, U> CastInto<U> for T
where U: CastFrom<T>,

Source§

unsafe fn cast_into(self) -> U

Performs the conversion. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

impl<T> StaticUpcast<T> for T

Source§

unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>

Convert type of a const pointer. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.