On this page

Using the AI assistant

Note the following when using the AI assistant:

  • The AI assistant is aware of images (by their names only) in the project assets and is instructed to use them whenever it seems to fit. For example, if you have an image named banana.jpg in your project assets, the AI assistant likely uses this image if you ask it to add a banana to the UI.
  • The AI assistant is aware of .ui.qml files and instructed to not generate code in them.

Using a prompt to generate content

To generate content with the AI assistant:

  1. In the AI Assistant view, select the model that you want to use from the drop-down menu.
  2. Enter your prompt in the prompt field. You can also use the Attach image button to attach an image to your prompt. These models can interpret the content of the image such as layout and visual hierarchy and use that understanding during generation. For example, you can attach an image of a UI layout and ask the AI assistant to build a UI based on the attached image.

    Note: If you attach an image to the AI assistant, it remains in use and affects results of your next generations until you remove it.

  3. Select the Send button to run the prompt.

    AI assistant view with a prompt in the prompt field

After a successful generation, rate the output with thumbs up or thumbs down. This helps improve the Qt Design Studio AI assistant.

Thumbs up and thumbs down rating buttons below a generation result

See also AI assistant, AI models, MCP servers, and Setting up the AI assistant.

Available under certain Qt licenses.
Find out more.