LINUX.ORG.RU

параметры запуска qt-приложений


0

0

с какими параметрами можно запускать qt-приложения? я знаю один -style - запускает с указанными стилем. а какие еще есть? хочу узнать есть ли параметр который шрифт указывает, может что-то типа -font

QApplication::QApplication ( int & argc, char ** argv )

Qt debugging options (not available if Qt was compiled without the QT_DEBUG flag defined):

* -nograb, tells Qt that it must never grab the mouse or the keyboard.
* -dograb (only under X11), running under a debugger can cause an implicit -nograb, use -dograb to override.
* -sync (only under X11), switches to synchronous mode for debugging.

See Debugging Techniques for a more detailed explanation.

All Qt programs automatically support the following command line options:

* -style= style, sets the application GUI style. Possible values are motif, windows, and platinum. If you compiled Qt with additional styles or have additional styles as plugins these will be available to the -style command line option.
* -style style, is the same as listed above.
* -stylesheet= stylesheet, sets the application styleSheet. The value must be a path to a file that contains the Style Sheet. Note that relative URLs in the Style Sheet file are relative to the Style Sheet file's path.
* -stylesheet stylesheet, is the same as listed above.
* -session= session, restores the application from an earlier session.
* -session session, is the same as listed above.
* -widgetcount, prints debug message at the end about number of widgets left undestroyed and maximum number of widgets existed at the same time
* -reverse, sets the application's layout direction to Qt::RightToLeft

The Windows version of Qt also support one additional command line option, if Direct3D support has been compiled into Qt:

* -direct3d will make the Direct3D paint engine the default widget paint engine in Qt. This functionality is experimental.

The X11 version of Qt also supports some traditional X11 command line options:

* -display display, sets the X display (default is $DISPLAY).
* -geometry geometry, sets the client geometry of the first window that is shown.
* -fn or -font font, defines the application font. The font should be specified using an X logical font description.
* -bg or -background color, sets the default background color and an application palette (light and dark shades are calculated).
* -fg or -foreground color, sets the default foreground color.
* -btn or -button color, sets the default button color.
* -name name, sets the application name.
* -title title, sets the application title.
* -visual TrueColor, forces the application to use a TrueColor visual on an 8-bit display.
* -ncols count, limits the number of colors allocated in the color cube on an 8-bit display, if the application is using the QApplication::ManyColor color specification. If count is 216 then a 6x6x6 color cube is used (i.e. 6 levels of red, 6 of green, and 6 of blue); for other values, a cube approximately proportional to a 2x3x1 cube is used.
* -cmap, causes the application to install a private color map on an 8-bit display.
* -im, sets the input method server (equivalent to setting the XMODIFIERS environment variable)
* -noxim, disables the input method framework ("no X input method").
* -inputstyle, defines how the input is inserted into the given widget. E.g., onTheSpot makes the input appear directly in the widget, while overTheSpot makes the input appear in a box floating over the widget and is not inserted until the editing is done.

Dendy ★★★★★
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.