call_qt_tool

call_qt_tool(tool_name: str, *, arguments: Sequence[str] = (), no_wait: bool = False) None[source]

Call qt tools in a generic way.

Parameters:
  • tool_name (str) – Name of the Qt tool to use (e.g. rcc, uic or designer)

  • arguments (Sequence[str]) – Additional arguments for options for the tool. Defaults to ()

  • no_wait (bool) – Whether or not to wait for the process to finish (used for CLI not to wait for designer application to close). Defaults to False

Raises:
  • ValueError – If arguments is not of type Sequence[str]

  • QtToolExecutionError – If the tool returns a non-zero exit code.