Qt Quick Code Style

To specify QML code style globally:

  1. Go to Preferences > Qt Quick > Code Style.
  2. In Custom settings, select the settings to modify, and then select Copy.

    {Qt Quick Code Style preferences}

  3. Give a name to the settings, and select OK.
  4. Specify how to interpret the Tab key presses and how to align continuation lines.
  5. In Line length, set the maximum line length for code lines.

To override the global preferences for a particular project, select Projects > Code Style.

See also Automatically format QML/JS files, Indent text or code, Find preferences, and Specify code style.

© 2024 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.