EWizard Wizard
Examples
Step-by-step setup
Validate before navigation
Asynchronous validation
Allow jumping between steps
Skip disabled steps
Properties
allowJumpboolAllow clicking the step bar to navigate while still checking beforeLeave.
falsebeforeLeavevarBefore-navigation callback (from, to), returning a boolean or Promise; false rejects navigation.
nullcurrentIndexintIndex of the currently selected command or step.
-1: no selection
0 and above: item index
0enabledboolAllow interaction; false disables the control.
truefinishTextstringFinish button text.
EControlConfig.textFor(control, "WizardFinish", ELocale.texts)fontfontFont settings for the family, size and text style.
Common fields:
family, pixelSize, pointSize
bold, italic, weight
underline, strikeout
letterSpacing, wordSpacing
Qt.font({ pixelSize: 16 })heightrealComponent size in pixels; may be bound to its parent layout.
implicitHeightlazyboolCreate a step when first visited and retain its page after leaving.
truemodelvarItem model; fields are described in the examples and usage guide.
[]nextTextstringNext button text.
EControlConfig.textFor(control, "WizardNext", ELocale.texts)previousTextstringPrevious button text.
EControlConfig.textFor(control, "WizardPrevious", ELocale.texts)showCancelboolShow the cancel button, which emits canceled.
truevisibleboolWhether the component is visible.
truewidthrealComponent size in pixels; may be bound to its parent layout.
implicitWidthbusyboolRead onlyTrue while awaiting asynchronous validation; prevents repeated navigation.
Computed at runtimecompleteboolRead onlyWhether the wizard is complete; reset() clears this state.
Computed at runtimecurrentPagevarRead onlyLoaded content object for the current step.
Computed at runtimehasNextboolRead onlyWhether an enabled step exists after the current step.
Computed at runtimehasPreviousboolRead onlyWhether an enabled step exists before the current step.
Computed at runtimepagesvarRead onlyStep model normalized to an array.
Computed at runtimeSignals
canceled()Emitted when the current operation is cancelled.
completed()Emitted when the wizard completes; save data or finish the workflow here.
stepChanged(int index)Emitted when the current step changes; index is the new step index.
Methods
previous()Move to the previous item or step.
finish()Attempt to finish the wizard and run completion validation.
next()Move to the next item or step.
reset()Restore the initial component state.