Tworzenie skryptów w języku Lua
Aby dodać drobne funkcje do serwisu Qt Creator, należy utworzyć i uruchomić skrypty w języku Lua.
Przykładowy skrypt dodaje ciąg znaków w miejscu, w którym znajduje się kursor w edytorze.
Aby utworzyć skrypty w języku Lua:
- Przejdź do Tools > Scripting > New Script.
- W oknie „ File name ” wprowadź nazwę pliku skryptu.
- Wybierz opcję „ Finish ”, aby utworzyć plik skryptu.
- Edytuj przykładowy skrypt.
Uruchamianie skryptów Lua
Aby uruchomić skrypty Lua:
- Przejdź do opcji „ Tools ” > „ Scripting ”.
- Wybierz skrypt, a następnie wybierz opcję „ Run ”.
Edytuj skrypty Lua
Aby edytować skrypty Lua:
- Przejdź do sekcji „ Tools ” > „ Scripting ”.
- Wybierz skrypt, a następnie wybierz opcję „ Edit ”.
Zobacz także: Nagrywanie makr do edycji tekstu.
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.