Preview lets you run the current project in a live rendering simulation that matches the final implementation exactly.
Overview
Clicking the preview button in the toolbar switches the editor to preview mode. In preview mode, the editor provides a live rendering simulation of the screens and widget behavior, so you can validate layout, interaction, and resource rendering without generating firmware or flashing a device.
Because preview runs the same generated code as the target, the observed behavior matches the final implementation exactly.
Starting a preview
- Open the screen you want to validate in the editor canvas.
- Click the preview button in the toolbar to enter preview mode.
- Interact with the rendered screen to verify behavior.
- Click the pause button to return to edit mode.
What preview validates
- Layout - widget positioning, alignment, and responsive behavior.
- Rendering - images and fonts.
- Interaction - event triggers and responses.
- Animation - property timelines, animation actions, and screen transitions.
An image whose source type is a file path is read the way the exported project reads it: the preview mounts the S: drive and draws the picture once the project's resources hold a file of that name. A path on another drive, or a name the library does not hold, draws nothing here and says so in Problems. See File-path sources.
Runtime version
Preview uses the active LVGL runtime version selected in the toolbar (8.3.7, 9.2.2, 9.3.0, 9.4.0, 9.5.0, or 9.6.0). Switching the version re-runs the preview against the corresponding runtime.
Related guides
- Overview - the editor interface as a whole.
- Canvas - design the screens that preview renders.
- Toolbar - the preview button and runtime version selector.
- Image - preview image rendering.
- Font library - preview typography rendering.
- Dynamic LVGL version - the runtime version preview executes on.
- Override screen size - the display resolution used by preview.
- Codegen - the generated code that preview executes.
- Transplant - move preview output to a target device.
- Simulator - run preview output on a local machine.