Crate cxx_qt

Source
Expand description

This crate and its associated crates provide a framework for generating QObjects from Rust.

See the book for more information.

Structs§

ConnectionType
This enum describes the types of connection that can be used with signals.
CxxQtThread
A threading helper which is created from a QObject that implements Threading.
QMetaObjectConnection
Represents a handle to a signal-slot (or signal-functor) connection.
QMetaObjectConnectionGuard
Represents a guard to a signal-slot (or signal-functor) connection.

Enums§

ThreadingQueueError
Errors that can occur from CXX-Qt

Traits§

Constructor
This trait can be implemented on any CxxQtType to define a custom constructor in C++ for the QObject.
CxxQtType
This trait is automatically implemented for all QObject types generated by CXX-Qt. It provides information about the inner Rust struct that is wrapped by the QObject, as well as the methods that Cxx-Qt will generate for the QObject.
Initialize
This trait can be implemented on any CxxQtType to automatically define a default constructor that calls the initialize function after constructing a default Rust struct.
Threading
This trait indicates that the object implements threading and has a method which returns a CxxQtThread.

Attribute Macros§

bridge
A procedural macro which generates a QObject for a struct inside a module.
qobject
A macro which describes that a struct should be made into a QObject.