Program qlua
accepts
the same command line options and arguments as
the stand-alone Lua interpreter
lua
.
It also accepts all the
Qt command line options
as well as a few specific options.
Usage: qlua [options] [script] The lua options are: -e stat execute string 'stat' -l name require library 'name' -i enter interactive mode after executing 'script' -v show version information -- stop handling options - execute stdin and stop handling options The specific qlua options are: -ide run the qlua integrated environment -onethread run lua in the main thread -nographics disable all the graphical capabilities The most important Qt options are: -style s set the application gui style 's' -session s restore gui session 's' -display d set the X display (default is $DISPLAY) -geometry g set the main window size and position -title s set the main window title to 's' ... see the Qt documentation for more options
Option -nographics
initializes the Qt
library for a text-only application.
This can be handy when executing scripts
because it avoids unnecessary overhead.
Option -onethread
runs the Lua interpreter
in the main thread instead of starting a dedicated thread.
As a consequence, while Lua is running,
graphical are not handled, windows are not painted,
timers are not honored, etc., unless the Lua program
calls qt.doevents()
frequently enough.
This is not the normal mode of operation of qlua
but this can be useful for debugging purposes.