compile_resource_file
- compile_resource_file(qrc_file: str | Path, output_path: str | Path, *, generator: Literal['python', 'cpp'] = 'python', rcc_args: Sequence[str] = ()) Path [source]
Call ‘Qt Resource Compiler’ to create code from a resource file.
- Parameters:
qrc_file (str | Path) – Path to the resource file.
output_path (str | Path) – Path the output file should be saved to.
generator (Literal["python", "cpp"]) – Language to generate code for. Defaults to “python”
rcc_args (Sequence[str]) – Additional args for ‘rcc’ (use ‘–help’ for details). Defaults to ()
- Returns:
Path of the compiled file
- Return type:
Path