このページでは

Luaスクリプトの作成

Qt Creator にちょっとした機能を追加するには、Luaスクリプトを作成して実行します。

このサンプルスクリプトは、エディタの現在のカーソル位置に文字列を追加します。

Luaスクリプトを作成するには:

  1. Tools > [Scripting ] > [New Script] の順に選択します。
  2. File name 」で、スクリプトファイルの名前を入力します。
  3. Finish 」を選択して、スクリプトファイルを作成します。
  4. サンプルスクリプトを編集します。

Lua スクリプトの実行

Lua スクリプトを実行するには:

  1. Tools 」>「Scripting 」に移動します。
  2. スクリプトを選択し、[Run] を選択します。

Luaスクリプトの編集

Luaスクリプトを編集するには:

  1. Tools 」>「Scripting 」に移動します。
  2. スクリプトを選択し、[Edit] を選択します。

テキスト編集マクロの記録も参照してください

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.