generateUICode

Generates code from *.ui file created with Qt Designer.

The generated code contains multiple declarations: Every widget in the *.ui file is declared as a variable. The function setupUi is created, which creates and configures all widgets. The function retranslateUi sets all translatable strings.

string
generateUICode
()
(
string xml
,
string customWidgetPackage = ""
)

Parameters

xml string

Content of *.ui file.

customWidgetPackage string

Package for custom widgets used in *.ui file.

Return Value

Type: string

D code for use in mixin.

Meta