Criar scripts em Lua
Para adicionar pequenos recursos ao Qt Creator, crie e execute scripts em Lua.
O script de exemplo insere uma string na posição atual do cursor no editor.
Para criar scripts em Lua:
- Acesse Tools > Scripting > New Script.
- Em “ File name ”, digite um nome para o arquivo de script.
- Selecione “ Finish ” para criar o arquivo de script.
- Edite o script de exemplo.
Executar scripts Lua
Para executar scripts Lua:
- Acesse “ Tools ” > “ Scripting ”.
- Selecione um script e, em seguida, selecione “ Run ”.
Editar scripts Lua
Para editar scripts Lua:
- Acesse Tools > Scripting.
- Selecione um script e, em seguida, selecione “ Edit ”.
Veja também Gravar macros de edição de texto.
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.