På denne side

Opret Lua-scripts

For at tilføje små funktioner til Qt Creator skal du oprette og køre Lua-scripts.

Eksempelskriptet tilføjer en streng ved den aktuelle cursorposition i editoren.

Sådan opretter du Lua-scripts:

  1. Gå til Tools > Scripting > New Script.
  2. I File name skal du indtaste et navn til scriptfilen.
  3. Vælg Finish for at oprette scriptfilen.
  4. Rediger eksempelskriptet.

Kør Lua-scripts

Sådan kører du Lua-scripts:

  1. Gå til " Tools " > " Scripting".
  2. Vælg et script, og vælg derefter Run.

Rediger Lua-scripts

Sådan redigerer du Lua-scripts:

  1. Gå til Tools > Scripting.
  2. Vælg et script, og vælg derefter Edit.

Se også Optag makroer til tekstredigering.

Copyright © The Qt Company Ltd. and other contributors. 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.