1 | This is Qt version 4.6.2 for OS/2 and eCS.
|
---|
2 |
|
---|
3 | This document contains a brief information on the OS/2 version of the Qt
|
---|
4 | library. Please read it carefully before starting your work. You may also
|
---|
5 | visit the project page at
|
---|
6 |
|
---|
7 | http://svn.netlabs.org/qt4/wiki
|
---|
8 |
|
---|
9 | to get more information and the latest news and also to report bugs.
|
---|
10 |
|
---|
11 | To get a brief list of OS/2-specific changes from release to release
|
---|
12 | please see the CHANGES.OS2 file included in this distribution.
|
---|
13 |
|
---|
14 | Please note that this version is binary incompatible with previous versions of
|
---|
15 | Qt 4 for OS/2! This is not a behavior of the original Qt library (where versions
|
---|
16 | with the same major number are usually binary compatible), but it is due to the
|
---|
17 | fact that we continue to add missing features to the OS/2 version ot Qt and this
|
---|
18 | cannot be done witout breaking the binary compatibility. On practice, this means
|
---|
19 | that you need to recompile your applications with the new version of the Qt
|
---|
20 | library in order to make them work with it.
|
---|
21 |
|
---|
22 |
|
---|
23 |
|
---|
24 | REQUIREMENTS
|
---|
25 |
|
---|
26 | In order to compile the Qt library and Qt-based applications, you will need
|
---|
27 | the following tools:
|
---|
28 |
|
---|
29 | - One of the OS/2 Warp 4, OS/2 Warp 4.5 or eComStation operating systems.
|
---|
30 |
|
---|
31 | - GCC compiler version 4.4.2 for OS/2, patched OpenWatcom linker and
|
---|
32 | GNU Make 3.81beta1 or above. The GCC compiler must be set up to use the
|
---|
33 | OpenWatcom linker for linking.
|
---|
34 |
|
---|
35 | If you do not have a working GCC environment with the above requirements, it
|
---|
36 | is recommended to download a ready-to-use GCC 4.2.2 distribution from here:
|
---|
37 |
|
---|
38 | ftp://ftp.netlabs.org/pub/qt4/gcc-4_4_2-complete-20091205.zip
|
---|
39 |
|
---|
40 | This distribution includes all tools necessary to compile and build the Qt
|
---|
41 | library from the source code. Just follow the installation instructions
|
---|
42 | contained in the README file inside this ZIP archive to set up the GCC
|
---|
43 | environment.
|
---|
44 |
|
---|
45 | Please note that starting from Qt 4.6.2, support for GCC 3.3.5 and earlier
|
---|
46 | versions of the compiler has been dropped and the Qt library will most
|
---|
47 | likely not build if you use one of these compilers. Later versions prior to
|
---|
48 | GCC 4.4.2 may work but they are not tested and not supported.
|
---|
49 |
|
---|
50 | There is also a set of optional tools which are necessary to enable the selected
|
---|
51 | features of the Qt library. If these tools are missing, the Qt configuration
|
---|
52 | script (discussed in section "COMPILING QT" below) will automatically disable
|
---|
53 | the corresponding feature:
|
---|
54 |
|
---|
55 | - LxLite 1.3.3 or above (not tested) to enable the compression of Qt DLLs and
|
---|
56 | application executables (which saves hard disk space and application startup
|
---|
57 | time). If you use a recent version of eComStation (e.g. 2.0 rc6) you will
|
---|
58 | already have LxLite installed. Otherwise, you may take it from here:
|
---|
59 |
|
---|
60 | http://www.os2site.com/sw/util/archiver/lxlt133.zip
|
---|
61 |
|
---|
62 | - CUPS 1.3.11 or later to support printing in Qt. The CUPS libraries are
|
---|
63 | available at:
|
---|
64 |
|
---|
65 | http://download.smedley.info/cups-1.3.11-os2-20090807.zip
|
---|
66 |
|
---|
67 | Linking against eCUPS also requires pthread.lib:
|
---|
68 |
|
---|
69 | http://web.os2power.com/download/lib/pthread-20100217-os2.zip
|
---|
70 |
|
---|
71 | - OpenSSL 0.9.8o or later to support OpenSSL in Qt. The OpenSSL libraries are
|
---|
72 | available at:
|
---|
73 |
|
---|
74 | http://bauxite.sakura.ne.jp/tmp/os2/openssl-1.0.0a-os2knix-20100706-runtime.zip
|
---|
75 | http://bauxite.sakura.ne.jp/tmp/os2/openssl-1.0.0a-os2knix-20100706-dev.zip
|
---|
76 |
|
---|
77 | - MySQL 5.1 or later for the MySQL Qt plugin. The MySQL libraries are
|
---|
78 | available at:
|
---|
79 |
|
---|
80 | http://download.smedley.info/mysql-5.1.51-os2-20101001.zip
|
---|
81 |
|
---|
82 | Note that you will also need the above OpenSSL libraries and pthread.lib to
|
---|
83 | be able to use this MySQL build.
|
---|
84 |
|
---|
85 | - PostgersSQL 9.0.1 or later to support the PostgresSQL Qt plugin. The
|
---|
86 | PostgresSQL libraries are available at:
|
---|
87 |
|
---|
88 | http://download.smedley.info/postgresql-9.0.1-os2-20101012.zip
|
---|
89 |
|
---|
90 | Note that you will also need libc064x.dll for this PostgresSQL build and a
|
---|
91 | patched PostgresSQL library that fixes one critical bug (this will not be
|
---|
92 | necessary for the next PostgresSQL build as it will incorporate the fix):
|
---|
93 |
|
---|
94 | http://download.smedley.info/libc064x.zip
|
---|
95 | http://download.smedley.info/libpq.zip
|
---|
96 |
|
---|
97 | Note that you will also need the above OpenSSL libraries and pthread.lib to
|
---|
98 | be able to use this PostgresSQL build.
|
---|
99 |
|
---|
100 |
|
---|
101 |
|
---|
102 | SETTING UP THE ENVIRONMENT
|
---|
103 |
|
---|
104 | First of all, make sure that your GCC environment is set up and meets the
|
---|
105 | specified requirements. To perform a quick check, you may run the following
|
---|
106 | command:
|
---|
107 |
|
---|
108 | gcc --version && make --version && wl /version
|
---|
109 |
|
---|
110 | If the setup is done properly, it will print the versions of the key tools
|
---|
111 | to the console.
|
---|
112 |
|
---|
113 | The next step is to set up the Qt environment. If you installed the Qt
|
---|
114 | development libraries from the WPI archive (refer to section "USING OFFICIAL
|
---|
115 | BINARY QT ARCHIVES" below for more details about existing WPI archives), you
|
---|
116 | will only need to run the supplied "QtEnv.cmd" script which will do all the
|
---|
117 | setup job for you. The script is located in the directory where you installed
|
---|
118 | the developmnent libraries (or in the WPS folder created by the WPI installer).
|
---|
119 | Execute this script in a command line session to make it ready for building
|
---|
120 | Qt 4 applications (for example, using the "qmake" command follwed by "make"
|
---|
121 | for applications based on qmake project files which most of them are). If you
|
---|
122 | go that way, you may skip the rest of this section and proceed directly to
|
---|
123 | section "USING OFFICIAL BINARY QT ARCHIVES" below.
|
---|
124 |
|
---|
125 | If you use the full source code ZIP distribution of the Qt library or work
|
---|
126 | directly with the Qt SVN tree, you will need to set up the environment yourself
|
---|
127 | by performing the following steps:
|
---|
128 |
|
---|
129 | - Add the "bin" subdirectory of the directory where you unpacked the Qt4
|
---|
130 | source tree to PATH and BEGINLIBPATH, like this:
|
---|
131 |
|
---|
132 | set PATH=D:\Coding\Qt4\bin;%PATH%
|
---|
133 | set BEGINLIBPATH=D:\Coding\Qt4\bin;%BEGINLIBPATH%
|
---|
134 |
|
---|
135 | - Add the system DLLs to the GCC library path with the following command:
|
---|
136 |
|
---|
137 | set LIBRARY_PATH=C:\OS2\DLL;C:\MPTN\DLL;%LIBRARY_PATH%
|
---|
138 |
|
---|
139 | where C: is your boot drive.
|
---|
140 |
|
---|
141 | - Make sure CMD.EXE is your command line processor (the generated makefiles
|
---|
142 | will rely on its 'copy', 'if' and other commands). If you have a Unix shell
|
---|
143 | (SH.EXE) in your environment, you may need to force GNU make to use CMD.EXE
|
---|
144 | by executing the followingn command:
|
---|
145 |
|
---|
146 | set MAKESHELL=C:\OS2\CMD.EXE
|
---|
147 |
|
---|
148 | where C: is your boot drive.
|
---|
149 |
|
---|
150 | Note that the QTDIR environment variable used in previous Qt versions is not
|
---|
151 | used in Qt4 anymore. Therefore, there is no need to set this variable
|
---|
152 | explicitly.
|
---|
153 |
|
---|
154 | There is also no need to set the QMAKESPEC variable explicitly. If it is absent,
|
---|
155 | qmake will use the specification stored in the <Qt4_Home>/mkspecs/default
|
---|
156 | directory, which on OS/2 always refers to the "os2-g++" specification, the only
|
---|
157 | one supported at the present time.
|
---|
158 |
|
---|
159 | NOTE:
|
---|
160 |
|
---|
161 | It is especially important to make sure that there are no traces of any
|
---|
162 | other Watcom or OpenWatcom installation in the environment where you build
|
---|
163 | Qt as it will interfere with the patched OpenWatcom linker we use. This
|
---|
164 | basically means removing all environment variables containing "WATCOM" in
|
---|
165 | their names and also removing references to all those Watcom installations
|
---|
166 | from PATH.
|
---|
167 |
|
---|
168 |
|
---|
169 |
|
---|
170 | SETTING UP OPTIONAL TOOLS
|
---|
171 |
|
---|
172 | The following list describes the steps necessary to set up the optional tools
|
---|
173 | that the Qt library depends on:
|
---|
174 |
|
---|
175 | - Unzip the CUPS libraries to some directory and set the following environment
|
---|
176 | variables to tell the Qt configure script its location:
|
---|
177 |
|
---|
178 | set CUPS_INCLUDEPATH=<path_to_CUPS>\include
|
---|
179 | set CUPS_LIBS=-L<path_to_CUPS>\lib -llibcups.a -L<path_to_pthread> -lpthread.lib
|
---|
180 |
|
---|
181 | - Unzip the OpenSSL libraries to some directory and set the following
|
---|
182 | environment variables to tell the Qt configure script its location:
|
---|
183 |
|
---|
184 | set OPENSSL_INCLUDEPATH=<path_to_OpenSSL>\include
|
---|
185 | set OPENSSL_LIBS=
|
---|
186 |
|
---|
187 | Note that you will also need to place OpenSSL DLLs to BEGINLIBPATH (if they
|
---|
188 | are not already in your LIBPATH) so that Qt applications can find them at
|
---|
189 | runtime:
|
---|
190 |
|
---|
191 | set BEGINLIBPATH=<path_to_OpenSSL>\dll;%BEGINLIBPATH%
|
---|
192 |
|
---|
193 | - Unzip the MySQL archive to some directory and set the following environment
|
---|
194 | variables to tell the Qt configure script the library location:
|
---|
195 |
|
---|
196 | set MYSQL_INCLUDEPATH=<path_to_MySQL>\include'
|
---|
197 | set MYSQL_LIBS=-L<path_to_MySQL>\lib -lmysqlclient_r -L<path_to_OpenSSL>\lib -llibssl -llibcrypto -L<path_to_pthread> -lpthread
|
---|
198 |
|
---|
199 | - Unzip the PostgresSQL archive to some directory and set the following
|
---|
200 | environment variables to tell the Qt configure script the library location:
|
---|
201 |
|
---|
202 | set PSQL_INCLUDEPATH=<path_to_PostgresSQL>\include'
|
---|
203 | set PSQL_LIBS=-L<path_to_PostgresSQL>\lib -llibpq -L<path_to_OpenSSL>\lib -llibssl -llibcrypto -L<path_to_pthread> -lpthread
|
---|
204 |
|
---|
205 |
|
---|
206 |
|
---|
207 | COMPILING QT
|
---|
208 |
|
---|
209 | You should skip this section if you installed the Qt development libraries using
|
---|
210 | the WPI archive (that already contains compiled release versions of the
|
---|
211 | libraries) and proceed directly to the next section.
|
---|
212 |
|
---|
213 | When the environment is set up, go to the directory where you unpacked the
|
---|
214 | Qt4 source tree and type:
|
---|
215 |
|
---|
216 | configure.cmd
|
---|
217 |
|
---|
218 | This will set up the Qt library (by creating necessary configuration and include
|
---|
219 | files and a bunch of Makefiles for variuos components) and build the qmake tool.
|
---|
220 |
|
---|
221 | The next step is to type:
|
---|
222 |
|
---|
223 | make
|
---|
224 |
|
---|
225 | This will compile and link the Qt library. Note that by default both the release
|
---|
226 | and the debug version of the library are built (please be patient, it may take
|
---|
227 | quite some time depending on your hardware). The release and debug libraries can
|
---|
228 | co-exist in the same source tree and may be used in parallel: all the debug DLLs
|
---|
229 | get a 'd' letter in their name preceeding the Qt major version number and use
|
---|
230 | separate directories for object files.
|
---|
231 |
|
---|
232 | To save time, you may build the release and the debug versions of the Qt library
|
---|
233 | separately by typing 'make release' or 'make debug' accordingly instead of just
|
---|
234 | 'make'.
|
---|
235 |
|
---|
236 | Once the library is successfully built, you may try to compile the demos and
|
---|
237 | examples by visiting the individual example subdirectories in the source tree
|
---|
238 | and typing 'qmake' followed by one of 'make', 'make release' or 'make debug'
|
---|
239 | in that subdirectory.
|
---|
240 |
|
---|
241 | NOTE:
|
---|
242 |
|
---|
243 | This version of Qt for OS/2 includes the Extended system tray plugin for
|
---|
244 | XCenter/eCenter which is necessary to enable Qt support for the special
|
---|
245 | notification area on the XCenter/eCenter panel (called the "system tray")
|
---|
246 | which is used by many long-running applications to display their status.
|
---|
247 | In order to activate this support, you need to install this plugin to your
|
---|
248 | XCenter or eCenter. The plugin is built during the normal Qt build process
|
---|
249 | and can be found in the file \plugins\xcenter\xsystray.dll in the Qt source
|
---|
250 | tree. In order to install the plugin, do the following:
|
---|
251 |
|
---|
252 | a. Copy xsystray.dll to <XWorkplace installation folder>\plugins\xcenter\
|
---|
253 | (on eComStation, this will be C:\ecs\system\ewps\plugins\xcenter\ where
|
---|
254 | C: is your boot drive).
|
---|
255 |
|
---|
256 | b. Restart WPS.
|
---|
257 |
|
---|
258 | c. Add the "Extended system tray" widget to the XCenter/eCenter panel using
|
---|
259 | the XCenter context menu ('Create new widget').
|
---|
260 |
|
---|
261 | Note that if you upgrade from the previous version of the plugin then
|
---|
262 | please unlock xsystray.dll in the target folder using the UNLOCK.EXE
|
---|
263 | utility (which you can find in the LxLite package, for example) before
|
---|
264 | performing step a., otherwise the copy operation will fail.
|
---|
265 |
|
---|
266 | IMPORTANT NOTE:
|
---|
267 |
|
---|
268 | Please take into account that the Qt library you build on your own as
|
---|
269 | described above is NOT intended for wide distribution with Qt applications
|
---|
270 | you port or create. Such private Qt builds help you develop Qt applications
|
---|
271 | (because you can easily debug your program and parts of the Qt framework at
|
---|
272 | the source level) but being widely distributed they will create a so-called
|
---|
273 | DLL hell when a program running on a user computer crashes because it picks
|
---|
274 | up a wrong build of the Qt library. This will happen because even a single
|
---|
275 | change to Qt configuration options may make your build binary incompatible
|
---|
276 | with another build. And even if you convince the user to isolate different
|
---|
277 | DLLs (using LIBPATHSTRICT and BEGINLIBPATH) it will create another major
|
---|
278 | problem: two different Qt applications will load two different copies of Qt
|
---|
279 | into memory which will create an unnecessary overhead by doubling the
|
---|
280 | amount of used system resources.
|
---|
281 |
|
---|
282 | In order to nicely solve this problem, netlabs.org provides the official
|
---|
283 | binary builds of the Qt library distributed as WPI archives which are
|
---|
284 | described in the next section.
|
---|
285 |
|
---|
286 |
|
---|
287 |
|
---|
288 | USING OFFICIAL BINARY QT ARCHIVES
|
---|
289 |
|
---|
290 | For your convenience, netlabs.org provides the following binary distributions
|
---|
291 | of the Qt library (where X_Y_Z is the Qt version number) distributed as WPI
|
---|
292 | archives:
|
---|
293 |
|
---|
294 | qt-lib-X_Y_Z.wpi - Runtime DLLs and binaries ("lib" archive)
|
---|
295 | qt-dev-X_Y_Z.wpi - Development libraries, tools and headers ("dev" archive)
|
---|
296 |
|
---|
297 | These archives are called the official binary archives of the Qt library for
|
---|
298 | OS/2. An official binary archive contains the most complete Qt build that
|
---|
299 | enables all features of the Qt library and includes all standard Qt plugins
|
---|
300 | implemented for the OS/2 platform at the time of the release.
|
---|
301 |
|
---|
302 | The "lib" archive contains the release versions of DLLs (and may contain a few
|
---|
303 | helper binaries) necessary to run applications created using the Qt framework.
|
---|
304 | This package is usually installed by end users together with Qt applications
|
---|
305 | they want to use.
|
---|
306 |
|
---|
307 | The "dev" archive contains pre-built release versions of import libraries and
|
---|
308 | a complete set of C++ include headers of the Qt framework. This package is used
|
---|
309 | by developers and porters of Qt applications to build release versions of the
|
---|
310 | applications that are binary compatibie with the Qt runtime provided by the
|
---|
311 | official "lib" archive described above. Using the "dev" package requires the
|
---|
312 | same environment as described in section "SETTING UP THE ENVIRONMET" above.
|
---|
313 |
|
---|
314 | Please note again that the "dev" archive is intended to make a final release
|
---|
315 | build of the Qt application which you do when you decide to ship a new version
|
---|
316 | to the end users -- makes sure that the deployed application will share the same
|
---|
317 | Qt runtime with other Qt applications. However, for daily work it is highly
|
---|
318 | recommended that you build the debug version of the Qt library yourself (using
|
---|
319 | the full source code ZIP archive or directly from SVN) as described in section
|
---|
320 | "COMPILING QT").
|
---|
321 |
|
---|
322 | Besides the "lib" and the "dev" archives, the following official archives exist
|
---|
323 | that you may also find useful:
|
---|
324 |
|
---|
325 | qt-examples-X_Y_Z.wpi - Demo and example sources ("examples")
|
---|
326 |
|
---|
327 | The "examples" archive contains the source code and compiled binaries of the
|
---|
328 | demo and example applications shipped with Qt. They serve as a good
|
---|
329 | demonstration of the Qt library features and it is recommended to look at them.
|
---|
330 | The binaries are compiled using the official "lib" archive. Please note that
|
---|
331 | some demos and examples may miss from the arcvhice since not all features have
|
---|
332 | been implemented in the OS/2 version of Qt yet.
|
---|
333 |
|
---|
334 | NOTE:
|
---|
335 |
|
---|
336 | All .DLL and .EXE files of the official binary build contain a DESCRIPTION
|
---|
337 | string with the vendor field set to "netlabs.org" (by contrast, all custom
|
---|
338 | Qt builds will set the vendor field to what the USER environment variable
|
---|
339 | contains or to "anonymous" if USER is not set). Please note that you must
|
---|
340 | NOT set vendor to "netlabs.org" when creating your own builds of the Qt
|
---|
341 | library because it will make it difficult to identify various distributions
|
---|
342 | and track possible problems with the builds.
|
---|
343 |
|
---|
344 |
|
---|
345 |
|
---|
346 | QMAKE CONFIG OPTIONS
|
---|
347 |
|
---|
348 | The following CONFIG options of the qmake tool have a special meaning in OS/2:
|
---|
349 |
|
---|
350 | windows Turns on generation of PM (WINDOWAPI) executables. By
|
---|
351 | default, this option is set for release builds that link
|
---|
352 | to the Qt GUI library.
|
---|
353 |
|
---|
354 | console Turns on generation of text mode (WINDOWCOMPAT) executables.
|
---|
355 | By default, this option is set when setting the "windows"
|
---|
356 | option is not appropriate (see above).
|
---|
357 |
|
---|
358 | In addition, qmake recognizes the following OS/2-specific CONFIG options:
|
---|
359 |
|
---|
360 | map Turns on generation of the .map files for executables and
|
---|
361 | DLLs. This option is set by default.
|
---|
362 |
|
---|
363 | exepack Turns on compression for executables and DLLs. The option is
|
---|
364 | turned on by default for release builds if configure.cmd
|
---|
365 | finds a compression tool (LxLite) in PATH.
|
---|
366 |
|
---|
367 | highmem Turns on high memory usage for dynamically allocated memory
|
---|
368 | in DLLs and executables. When this option is set, a special
|
---|
369 | compiler flag (-Zhigh-mem for GCC) is used to enable high
|
---|
370 | memory support in the C library (LIBC). This option is set
|
---|
371 | by default so that all Qt DLLs and Qt applications built
|
---|
372 | with qmake are enabled for high memory. Note that high
|
---|
373 | memory support must be enabled for all LIBC-based DLLs
|
---|
374 | linked to the executable as well as for the executable
|
---|
375 | itself: high memory usage will be disabled if one of them
|
---|
376 | votes against it.
|
---|
377 |
|
---|
378 | export_all Cause the linker to export all public symbols in a generated
|
---|
379 | DLL. By default (when this option is absent), only the
|
---|
380 | symbols marked with the __declspec(dllexport) compiler
|
---|
381 | directive in the source files.
|
---|
382 |
|
---|
383 |
|
---|
384 |
|
---|
385 | PRINTING SUPPORT
|
---|
386 |
|
---|
387 | Starting with version 4.6.2, Qt for OS/2 supports printing through the CUPS
|
---|
388 | framework (provided that this support is enabled when building Qt, see the
|
---|
389 | respective sections in the beginning of this document). The OS/2 implementation
|
---|
390 | of the CUPS framework is provided by the eCUPS package available at
|
---|
391 | http://svn.netlabs.org/ecups/.
|
---|
392 |
|
---|
393 | The Qt Runtime detects the presence of eCUPS in the system on the fly and talks
|
---|
394 | to the CUPS daemon directly, bypassing the standard OS/2 printing subsystem.
|
---|
395 | This means that in order to print from Qt applications, you don't need to create
|
---|
396 | and configure printer objects using the standard OS/2 system printer setup
|
---|
397 | procedure -- you only need to install eCUPS and configure your printers in
|
---|
398 | there. Please refer to the eCUPS user manual to obtain the detailed instructions
|
---|
399 | on how to configure CUPS printers.
|
---|
400 |
|
---|
401 |
|
---|
402 |
|
---|
403 | ENVIRONMENT VARIABLES
|
---|
404 |
|
---|
405 | The Qt library recognizes a number of OS/2-specific environment variables that
|
---|
406 | affect its functionality at runtime. The table below lists these variables and
|
---|
407 | their meaning:
|
---|
408 |
|
---|
409 | QT_PM_NO_DIVE If set, Qt will not use DIVE (direct interface video
|
---|
410 | extensions) for painting widgets even if DIVE (which
|
---|
411 | provides a much faster painting speed than the
|
---|
412 | regular GPI approach) is available. Currently, this
|
---|
413 | is the default setting if the Panorama video driver
|
---|
414 | is detected because its DIVE implementation contains
|
---|
415 | a number of bugs.
|
---|
416 |
|
---|
417 | QT_PM_DIVE=<mode> Enables using DIVE for painting widgets. <mode> is
|
---|
418 | one of:
|
---|
419 |
|
---|
420 | - FB (direct framebuffer access, which is the
|
---|
421 | fastest mode but causes the curruption of the
|
---|
422 | screen under the software mouse pointer due to
|
---|
423 | the limitation of DIVE). If this mode is not
|
---|
424 | available, BLIT will be used (see below).
|
---|
425 |
|
---|
426 | - FBSWM (the same FB but hides the mouse pointer
|
---|
427 | before painting which introduces mouse flicker
|
---|
428 | and may be a bit slower than the raw FB).
|
---|
429 |
|
---|
430 | - BLIT (slower than both FB and FBSWM but prevents
|
---|
431 | screen corruption under the mouse pointer and
|
---|
432 | does not produce the mouse pointer flicker
|
---|
433 | effect).
|
---|
434 |
|
---|
435 | This variable is ignored if QT_PM_NO_DIVE is set. If
|
---|
436 | neither this nor the QT_PM_NO_DIVE variable is set,
|
---|
437 | the FBSWM mode is used by default (unless the
|
---|
438 | current video driver is Panorama, see above).
|
---|
439 |
|
---|
440 | QT_PM_NO_SOUND_SHARE If set, Qt will open the audio device in exclusive
|
---|
441 | only one sound may be played on the computer at a
|
---|
442 | time. This mode is recommended for some sound cards
|
---|
443 | when using the Uniaud audio driver as it is known to
|
---|
444 | have problems with simultaneous playback. In current
|
---|
445 | Qt builds, this is the default behavior if neither
|
---|
446 | this nor the QT_PM_SOUND_SHARE variable is set.
|
---|
447 |
|
---|
448 | QT_PM_SOUND_SHARE The opposite to the above. If set, Qt will open the
|
---|
449 | audio device in shared mode. This variable is
|
---|
450 | ignored if QT_PM_NO_SOUND_SHARE is set.
|
---|
451 |
|
---|
452 | QT_PM_NO_REGISTRY If set, Qt will not use the Open32 registry to store
|
---|
453 | application settings with QSettings. Instead, plain
|
---|
454 | text INI files will be used for both NativeFormat
|
---|
455 | and IniFormat. Due to a number of problems in the
|
---|
456 | Open32 registry implementation (that may easily lead
|
---|
457 | to registry corruption), this is the default
|
---|
458 | behavior if neither this nor the QT_PM_REGISTRY
|
---|
459 | variable is set.
|
---|
460 |
|
---|
461 | QT_PM_REGISTRY The opposite to the above. If set, Qt will use the
|
---|
462 | Open32 registry to store application settings. This
|
---|
463 | variable is ignored if QT_PM_NO_REGISTRY is set.
|
---|
464 |
|
---|
465 | QT_PM_NO_SYSTEM_LOCALE If set, Qt will ignore the regional settings from
|
---|
466 | the system locale object found in the Country
|
---|
467 | Palette located in the System Setup folder and will
|
---|
468 | take them from the internal Qt locale database
|
---|
469 | according to the current country and language
|
---|
470 | settings. Due to the fact that this internal Qt
|
---|
471 | database usually has a better representation of the
|
---|
472 | regional settings, this is the default behavior if
|
---|
473 | neither this nor the QT_PM_SYSTEM_LOCALE variable is
|
---|
474 | set.
|
---|
475 |
|
---|
476 | QT_PM_SYSTEM_LOCALE The opposite to the above. If set, Qt will use the
|
---|
477 | regional settings as found in the default locale
|
---|
478 | object set the Country Palette. This variable is
|
---|
479 | ignored if QT_PM_NO_SYSTEM_LOCALE is set.
|
---|
480 |
|
---|
481 | LANG This variable can be used to override the default
|
---|
482 | country and language used in the Qt application both
|
---|
483 | for regional settings and for translations. The
|
---|
484 | format of the value is "ll_CC" where <ll> is the
|
---|
485 | two-letter ISO language code and <CC> is the two-
|
---|
486 | letter ISO country code. Note that if this variable
|
---|
487 | is not set, Qt will derive the language and country
|
---|
488 | from the system country code specified in the
|
---|
489 | COUNTRY statement of CONFIG.SYS.
|
---|
490 |
|
---|
491 |
|
---|
492 |
|
---|
493 | COMMAND LINE OPTIONS
|
---|
494 |
|
---|
495 | Any Qt executable recognizes a number of command line options that may change
|
---|
496 | the behavior of the Qt application. Here are the most interesting ones:
|
---|
497 |
|
---|
498 | -style <name> Changes the default Qt widget style (theme) to a
|
---|
499 | style with the given name. The buiil-in styles which
|
---|
500 | are always available in the official build include:
|
---|
501 | "windows" (currently, the default on OS/2), "motif",
|
---|
502 | "cde", "plastique" and "cleanlooks". Other styles
|
---|
503 | may be also provided by the style plugins.
|
---|
504 |
|
---|
505 | -graphicssystem <name> Changes the graphics system used to paint widgets.
|
---|
506 | On OS/2, only two values are supported: "native"
|
---|
507 | (the default one) and "raster". The "native" system
|
---|
|
---|