register_bytes

Function register_bytes 

Source
pub fn register_bytes(data: &[u8]) -> bool
Expand description

Registers Qt resource data from an in-memory byte slice.

This function registers a dynamic resource generated with rcc, making the embedded resources available at runtime through the qrc:/ scheme.

§Parameters

  • data - A byte slice containing the compiled Qt resource data.

§Returns

Returns true if the resource was successfully registered, or false if registration failed.