source: trunk/doc/src/qnamespace.qdoc@ 342

Last change on this file since 342 was 2, checked in by Dmitry A. Kuminov, 16 years ago

Initially imported qt-all-opensource-src-4.5.1 from Trolltech.

File size: 96.6 KB
Line 
1/****************************************************************************
2**
3** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
4** Contact: Qt Software Information ([email protected])
5**
6** This file is part of the documentation of the Qt Toolkit.
7**
8** $QT_BEGIN_LICENSE:LGPL$
9** Commercial Usage
10** Licensees holding valid Qt Commercial licenses may use this file in
11** accordance with the Qt Commercial License Agreement provided with the
12** Software or, alternatively, in accordance with the terms contained in
13** a written agreement between you and Nokia.
14**
15** GNU Lesser General Public License Usage
16** Alternatively, this file may be used under the terms of the GNU Lesser
17** General Public License version 2.1 as published by the Free Software
18** Foundation and appearing in the file LICENSE.LGPL included in the
19** packaging of this file. Please review the following information to
20** ensure the GNU Lesser General Public License version 2.1 requirements
21** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
22**
23** In addition, as a special exception, Nokia gives you certain
24** additional rights. These rights are described in the Nokia Qt LGPL
25** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
26** package.
27**
28** GNU General Public License Usage
29** Alternatively, this file may be used under the terms of the GNU
30** General Public License version 3.0 as published by the Free Software
31** Foundation and appearing in the file LICENSE.GPL included in the
32** packaging of this file. Please review the following information to
33** ensure the GNU General Public License version 3.0 requirements will be
34** met: http://www.gnu.org/copyleft/gpl.html.
35**
36** If you are unsure which license is appropriate for your use, please
37** contact the sales department at [email protected].
38** $QT_END_LICENSE$
39**
40****************************************************************************/
41
42/*!
43 \namespace Qt
44
45 \brief The Qt namespace contains miscellaneous identifiers
46 used throughout the Qt library.
47
48 \ingroup misc
49*/
50
51/*!
52 \enum Qt::Orientation
53
54 This type is used to signify an object's orientation.
55
56 \value Horizontal
57 \value Vertical
58
59 Orientation is used with QScrollBar for example.
60*/
61
62/*!
63 \enum Qt::AlignmentFlag
64
65 This enum type is used to describe alignment. It contains
66 horizontal and vertical flags that can be combined to produce
67 the required effect.
68
69 The \l{TextElideMode} enum can also be used in many situations
70 to fine-tune the appearance of aligned text.
71
72 The horizontal flags are:
73
74 \value AlignLeft Aligns with the left edge.
75 \value AlignRight Aligns with the right edge.
76 \value AlignHCenter Centers horizontally in the available space.
77 \value AlignJustify Justifies the text in the available space.
78 \omitvalue AlignAuto
79
80 The vertical flags are:
81
82 \value AlignTop Aligns with the top.
83 \value AlignBottom Aligns with the bottom.
84 \value AlignVCenter Centers vertically in the available space.
85
86 You can use only one of the horizontal flags at a time. There is
87 one two-dimensional flag:
88
89 \value AlignCenter Centers in both dimensions.
90
91 You can use at most one horizontal and one vertical flag at a
92 time. Qt::AlignCenter counts as both horizontal and vertical.
93
94 Three enum values are useful in applications that can be run in
95 right-to-left mode:
96
97 \value AlignAbsolute If the widget's layout direction is
98 Qt::RightToLeft (instead of Qt::LeftToRight, the default),
99 Qt::AlignLeft refers to the \e right edge and Qt::AlignRight
100 to the \e left edge. This is normally the desired behavior.
101 If you want Qt::AlignLeft to always mean "left" and
102 Qt::AlignRight to always mean "right", combine the flag with
103 Qt::AlignAbsolute.
104 \value AlignLeading Synonym for Qt::AlignLeft.
105 \value AlignTrailing Synonym for Qt::AlignRight.
106
107 Masks:
108
109 \value AlignHorizontal_Mask
110 \value AlignVertical_Mask
111
112 Conflicting combinations of flags have undefined meanings.
113*/
114
115/*!
116 \enum Qt::ApplicationAttribute
117
118 This enum describes attributes that change the behavior of
119 application-wide features. These are enabled and disabled using
120 QCoreApplication::setAttribute(), and can be tested for with
121 QCoreApplication::testAttribute().
122
123 \value AA_ImmediateWidgetCreation Ensures that widgets are created
124 as soon as they are constructed. By default, resources for
125 widgets are allocated on demand to improve efficiency and
126 minimize resource usage. Setting or clearing this attribute
127 affects widgets constructed after the change. Setting it
128 tells Qt to create toplevel windows immediately.
129 Therefore, if it is important to minimize resource
130 consumption, do not set this attribute.
131
132 \value AA_MSWindowsUseDirect3DByDefault Is a Windows specific
133 attribute, that will make the Direct3D paint engine the
134 default Qt widget paint engine. Note that you can toggle
135 usage of the Direct3D engine on individual QWidgets by
136 setting/clearing the \c WA_MSWindowsUseDirect3D attribute
137 on a specific widget. \bold {This functionality is
138 experimental}.
139
140 \value AA_DontShowIconsInMenus Actions with the Icon property won't be
141 shown in any menus unless specifically set by the
142 QAction::iconVisibleInMenu property.
143
144 Menus that are currently open or menus already created in the native
145 Mac OS X menubar MAY NOT pick up a change in this attribute. Changes
146 in the QAction::iconVisibleInMenu property will always be picked up.
147
148 \value AA_NativeWindows Ensures that widgets have native windows.
149
150 \value AA_DontCreateNativeWidgetSiblings Ensures that siblings of native
151 widgets stay non-native unless specifically set by the
152 Qt::WA_NativeWindow attribute.
153
154 \value AA_MacPluginApplication Stops the a Qt mac application from doing
155 specific initializations that do not necessarily make sense when using Qt
156 to author a plugin. This includes avoiding loading our nib for the main
157 menu and not taking possession of the native menu bar.
158
159 \omitvalue AA_AttributeCount
160*/
161
162/*!
163 \enum Qt::MouseButton
164
165 This enum type describes the different mouse buttons.
166
167 \value NoButton The button state does not refer to any
168 button (see QMouseEvent::button()).
169 \value LeftButton The left button is pressed, or an event refers
170 to the left button. (The left button may be the right button on
171 left-handed mice.)
172 \value RightButton The right button.
173 \value MidButton The middle button.
174 \value XButton1 The first X button.
175 \value XButton2 The second X button.
176
177 \omitvalue MouseButtonMask
178
179 \sa KeyboardModifier Modifier
180*/
181
182/*!
183 \enum Qt::KeyboardModifier
184
185 This enum describes the modifier keys.
186
187 \value NoModifier No modifier key is pressed.
188 \value ShiftModifier A Shift key on the keyboard is pressed.
189 \value ControlModifier A Ctrl key on the keyboard is pressed.
190 \value AltModifier An Alt key on the keyboard is pressed.
191 \value MetaModifier A Meta key on the keyboard is pressed.
192 \value KeypadModifier A keypad button is pressed.
193 \value GroupSwitchModifier X11 only. A Mode_switch key on the keyboard is pressed.
194
195 \omitvalue KeyboardModifierMask
196
197 \note On Mac OS X, the \c ControlModifier value corresponds to
198 the Command keys on the Macintosh keyboard, and the \c MetaModifier value
199 corresponds to the Control keys. The \c KeypadModifier value will also be set
200 when an arrow key is pressed as the arrow keys are considered part of the
201 keypad.
202
203 \note On Windows Keyboards, Qt::MetaModifier and Qt::Key_Meta are mapped
204 to the Windows key.
205
206 \sa MouseButton Modifier
207*/
208
209/*!
210 \enum Qt::Modifier
211
212 This enum provides shorter names for the keyboard modifier keys
213 supported by Qt.
214
215 \bold{Note:} On Mac OS X, the \c CTRL value corresponds to
216 the Command keys on the Macintosh keyboard, and the \c META value
217 corresponds to the Control keys.
218
219 \value SHIFT The Shift keys provided on all standard keyboards.
220 \value META The Meta keys.
221 \value CTRL The Ctrl keys.
222 \value ALT The normal Alt keys, but not keys like AltGr.
223 \value UNICODE_ACCEL The shortcut is specified as a Unicode code
224 point, not as a Qt Key.
225 \omitvalue MODIFIER_MASK
226
227 \sa KeyboardModifier MouseButton
228*/
229
230/*!
231 \enum Qt::GlobalColor
232
233 \raw HTML
234 <style type="text/css" id="colorstyles">
235 #white { background-color: #ffffff; color: #000000 }
236 #black { background-color: #000000; color: #ffffff }
237 #red { background-color: #ff0000; color: #000000 }
238 #darkRed { background-color: #800000; color: #ffffff }
239 #green { background-color: #00ff00; color: #000000 }
240 #darkGreen { background-color: #008000; color: #ffffff }
241 #blue { background-color: #0000ff; color: #ffffff }
242 #darkBlue { background-color: #000080; color: #ffffff }
243 #cyan { background-color: #00ffff; color: #000000 }
244 #darkCyan { background-color: #008080; color: #ffffff }
245 #magenta { background-color: #ff00ff; color: #000000 }
246 #darkMagenta { background-color: #800080; color: #ffffff }
247 #yellow { background-color: #ffff00; color: #000000 }
248 #darkYellow { background-color: #808000; color: #ffffff }
249 #gray { background-color: #a0a0a4; color: #000000 }
250 #darkGray { background-color: #808080; color: #ffffff }
251 #lightGray { background-color: #c0c0c0; color: #000000 }
252 </style>
253 \endraw
254
255 Qt's predefined QColor objects:
256
257 \value white \raw HTML
258 White <tt id="white">(#ffffff)</tt>
259 \endraw
260 \value black \raw HTML
261 Black <tt id="black">(#000000)</tt>
262 \endraw
263 \value red \raw HTML
264 Red <tt id="red">(#ff0000)</tt>
265 \endraw
266 \value darkRed \raw HTML
267 Dark red <tt id="darkRed">(#800000)</tt>
268 \endraw
269 \value green \raw HTML
270 Green <tt id="green">(#00ff00)</tt>
271 \endraw
272 \value darkGreen \raw HTML
273 Dark green <tt id="darkGreen">(#008000)</tt>
274 \endraw
275 \value blue \raw HTML
276 Blue <tt id="blue">(#0000ff)</tt>
277 \endraw
278 \value darkBlue \raw HTML
279 Dark blue <tt id="darkBlue">(#000080)</tt>
280 \endraw
281 \value cyan \raw HTML
282 Cyan <tt id="cyan">(#00ffff)</tt>
283 \endraw
284 \value darkCyan \raw HTML
285 Dark cyan <tt id="darkCyan">(#008080)</tt>
286 \endraw
287 \value magenta \raw HTML
288 Magenta <tt id="magenta">(#ff00ff)</tt>
289 \endraw
290 \value darkMagenta \raw HTML
291 Dark magenta <tt id="darkMagenta">(#800080)</tt>
292 \endraw
293 \value yellow \raw HTML
294 Yellow <tt id="yellow">(#ffff00)</tt>
295 \endraw
296 \value darkYellow \raw HTML
297 Dark yellow <tt id="darkYellow">(#808000)</tt>
298 \endraw
299 \value gray \raw HTML
300 Gray <tt id="gray">(#a0a0a4)</tt>
301 \endraw
302 \value darkGray \raw HTML
303 Dark gray <tt id="darkGray">(#808080)</tt>
304 \endraw
305 \value lightGray \raw HTML
306 Light gray <tt id="lightGray">(#c0c0c0)</tt>
307 \endraw
308 \value transparent a transparent black value (i.e., QColor(0, 0, 0, 0))
309 \value color0 0 pixel value (for bitmaps)
310 \value color1 1 pixel value (for bitmaps)
311
312 \sa QColor
313
314*/
315
316/*!
317 \enum Qt::PenStyle
318
319 This enum type defines the pen styles that can be drawn using
320 QPainter. The styles are:
321
322 \table
323 \row
324 \o \inlineimage qpen-solid.png
325 \o \inlineimage qpen-dash.png
326 \o \inlineimage qpen-dot.png
327 \row
328 \o Qt::SolidLine
329 \o Qt::DashLine
330 \o Qt::DotLine
331 \row
332 \o \inlineimage qpen-dashdot.png
333 \o \inlineimage qpen-dashdotdot.png
334 \o \inlineimage qpen-custom.png
335 \row
336 \o Qt::DashDotLine
337 \o Qt::DashDotDotLine
338 \o Qt::CustomDashLine
339 \endtable
340
341 \value NoPen no line at all. For example, QPainter::drawRect()
342 fills but does not draw any boundary line.
343
344 \value SolidLine A plain line.
345 \value DashLine Dashes separated by a few pixels.
346 \value DotLine Dots separated by a few pixels.
347 \value DashDotLine Alternate dots and dashes.
348 \value DashDotDotLine One dash, two dots, one dash, two dots.
349 \value CustomDashLine A custom pattern defined using
350 QPainterPathStroker::setDashPattern().
351
352 \omitvalue MPenStyle
353
354 \sa QPen
355*/
356
357/*!
358 \enum Qt::PenCapStyle
359
360 This enum type defines the pen cap styles supported by Qt, i.e.
361 the line end caps that can be drawn using QPainter.
362
363 \table
364 \row
365 \o \inlineimage qpen-square.png
366 \o \inlineimage qpen-flat.png
367 \o \inlineimage qpen-roundcap.png
368 \row
369 \o Qt::SquareCap
370 \o Qt::FlatCap
371 \o Qt::RoundCap
372 \endtable
373
374 \value FlatCap a square line end that does not cover the end
375 point of the line.
376 \value SquareCap a square line end that covers the end point and
377 extends beyond it by half the line width.
378 \value RoundCap a rounded line end.
379 \omitvalue MPenCapStyle
380
381 \sa QPen
382*/
383
384/*!
385 \enum Qt::PenJoinStyle
386
387 This enum type defines the pen join styles supported by Qt, i.e.
388 which joins between two connected lines can be drawn using
389 QPainter.
390
391 \table
392 \row
393 \o \inlineimage qpen-bevel.png
394 \o \inlineimage qpen-miter.png
395 \o \inlineimage qpen-roundjoin.png
396 \row
397 \o Qt::BevelJoin
398 \o Qt::MiterJoin
399 \o Qt::RoundJoin
400 \endtable
401
402 \value MiterJoin The outer edges of the lines are extended to
403 meet at an angle, and this area is filled.
404 \value BevelJoin The triangular notch between the two lines is filled.
405 \value RoundJoin A circular arc between the two lines is filled.
406 \value SvgMiterJoin A miter join corresponding to the definition of
407 a miter join in the \l{SVG 1.2 Tiny} specification.
408 \omitvalue MPenJoinStyle
409
410 \sa QPen
411*/
412
413/*!
414 \enum Qt::BrushStyle
415
416 This enum type defines the brush styles supported by Qt, i.e. the
417 fill pattern of shapes drawn using QPainter.
418
419 \image brush-styles.png Brush Styles
420
421 \value NoBrush No brush pattern.
422 \value SolidPattern Uniform color.
423 \value Dense1Pattern Extremely dense brush pattern.
424 \value Dense2Pattern Very dense brush pattern.
425 \value Dense3Pattern Somewhat dense brush pattern.
426 \value Dense4Pattern Half dense brush pattern.
427 \value Dense5Pattern Somewhat sparse brush pattern.
428 \value Dense6Pattern Very sparse brush pattern.
429 \value Dense7Pattern Extremely sparse brush pattern.
430 \value HorPattern Horizontal lines.
431 \value VerPattern Vertical lines.
432 \value CrossPattern Crossing horizontal and vertical lines.
433 \value BDiagPattern Backward diagonal lines.
434 \value FDiagPattern Forward diagonal lines.
435 \value DiagCrossPattern Crossing diagonal lines.
436 \value LinearGradientPattern Linear gradient (set using a dedicated QBrush constructor).
437 \value ConicalGradientPattern Conical gradient (set using a dedicated QBrush constructor).
438 \value RadialGradientPattern Radial gradient (set using a dedicated QBrush constructor).
439 \value TexturePattern Custom pattern (see QBrush::setTexture()).
440
441 \omitvalue CustomPattern
442
443 \sa QBrush
444*/
445
446/*!
447 \enum Qt::TextFlag
448
449 This enum type is used to define some modifier flags. Some of
450 these flags only make sense in the context of printing:
451
452 \value TextSingleLine Treats all whitespace as spaces and prints just
453 one line.
454 \value TextDontClip If it's impossible to stay within the given bounds,
455 it prints outside.
456 \value TextExpandTabs Makes the U+0009 (ASCII tab) character move to
457 the next tab stop.
458 \value TextShowMnemonic Displays the string "\&P" as \underline{P}
459 (see QButton for an example). For an ampersand, use "\&\&".
460 \value TextWordWrap Breaks lines at appropriate points, e.g. at word
461 boundaries.
462 \value TextWrapAnywhere Breaks lines anywhere, even within words.
463 \value TextHideMnemonic Same as Qt::TextShowMnemonic but doesn't draw the underlines.
464 \value TextDontPrint Treat this text as "hidden" and don't print
465 it.
466 \value IncludeTrailingSpaces When this option is set, QTextLine::naturalTextWidth() and naturalTextRect() will
467 return a value that includes the width of trailing spaces in the text; otherwise
468 this width is excluded.
469 \value TextIncludeTrailingSpaces Same as IncludeTrailingSpaces
470 \value TextJustificationForced Ensures that text lines are justified.
471
472 \omitvalue BreakAnywhere
473 \omitvalue DontClip
474 \omitvalue DontPrint
475 \omitvalue ExpandTabs
476 \omitvalue IncludeTrailingSpaces
477 \omitvalue NoAccel
478 \omitvalue ShowPrefix
479 \omitvalue SingleLine
480 \omitvalue WordBreak
481 \omitvalue TextForceLeftToRight
482 \omitvalue TextForceRightToLeft
483
484 You can use as many modifier flags as you want, except that
485 Qt::TextSingleLine and Qt::TextWordWrap cannot be combined.
486
487 Flags that are inappropriate for a given use are generally
488 ignored.
489*/
490
491/*!
492 \enum Qt::BGMode
493
494 Background mode:
495
496 \value TransparentMode
497 \value OpaqueMode
498*/
499
500/*!
501 \enum Qt::ConnectionType
502
503 This enum describes the types of connection that can be used between signals and
504 slots. In particular, it determines whether a particular signal is delivered to a
505 slot immediately or queued for delivery at a later time.
506
507 \omitvalue AutoCompatConnection
508 \value DirectConnection When emitted, the signal is immediately delivered to the slot.
509 \value QueuedConnection When emitted, the signal is queued until the event loop is
510 able to deliver it to the slot.
511 \value BlockingQueuedConnection
512 Same as QueuedConnection, except that the current thread blocks
513 until the slot has been delivered. This connection type should
514 only be used for receivers in a different thread. Note that misuse
515 of this type can lead to deadlocks in your application.
516 \value AutoConnection If the signal is emitted from the thread
517 in which the receiving object lives, the
518 slot is invoked directly, as with
519 Qt::DirectConnection; otherwise the
520 signal is queued, as with
521 Qt::QueuedConnection.
522
523 With queued connections, the parameters must be of types that are known to
524 Qt's meta-object system, because Qt needs to copy the arguments to store them
525 in an event behind the scenes. If you try to use a queued connection and
526 get the error message
527
528 \snippet doc/src/snippets/code/doc_src_qnamespace.qdoc 0
529
530 call qRegisterMetaType() to register the data type before you
531 establish the connection.
532
533 \sa {Thread Support in Qt}, QObject::connect(), qRegisterMetaType()
534*/
535
536/*!
537 \enum Qt::DateFormat
538
539 \value TextDate The default Qt format, which includes the day and month name,
540 the day number in the month, and the year in full. The day and month names will
541 be short, localized names. This is basically equivalent to using the date format
542 string, "ddd MMM d yyyy". See QDate::toString() for more information.
543
544 \value ISODate ISO 8601 extended format: either \c{YYYY-MM-DD} for dates or
545 \c{YYYY-MM-DDTHH:MM:SS} for combined dates and times.
546
547 \value SystemLocaleShortDate The \l{QLocale::ShortFormat}{short format} used
548 by the \l{QLocale::system()}{operating system}.
549
550 \value SystemLocaleLongDate The \l{QLocale::LongFormat}{long format} used
551 by the \l{QLocale::system()}{operating system}.
552
553 \value DefaultLocaleShortDate The \l{QLocale::ShortFormat}{short format} specified
554 by the \l{QLocale::setDefault()}{application's locale}.
555
556 \value DefaultLocaleLongDate The \l{QLocale::LongFormat}{long format} used
557 by the \l{QLocale::setDefault()}{application's locale}.
558
559 \value SystemLocaleDate \e{This enum value is deprecated.} Use Qt::SystemLocaleShortDate
560 instead (or Qt::SystemLocaleLongDate if you want long dates).
561
562 \value LocaleDate \e{This enum value is deprecated.} Use Qt::DefaultLocaleShortDate
563 instead (or Qt::DefaultLocaleLongDate if you want long dates).
564
565 \value LocalDate \e{This enum value is deprecated.} Use Qt::SystemLocaleShortDate
566 instead (or Qt::SystemLocaleLongDate if you want long dates).
567
568 \note For \c ISODate formats, each \c Y, \c M and \c D represents a single digit
569 of the year, month and day used to specify the date. Each \c H, \c M and \c S
570 represents a single digit of the hour, minute and second used to specify the time.
571 The presence of a literal \c T character is used to separate the date and time when
572 both are specified.
573*/
574
575
576/*!
577 \enum Qt::TimeSpec
578
579 \value LocalTime Locale dependent time (Timezones and Daylight Savings Time).
580 \value UTC Coordinated Universal Time, replaces Greenwich Mean Time.
581 \value OffsetFromUTC An offset in seconds from Coordinated Universal Time.
582*/
583
584/*!
585 \enum Qt::DayOfWeek
586
587 \value Monday
588 \value Tuesday
589 \value Wednesday
590 \value Thursday
591 \value Friday
592 \value Saturday
593 \value Sunday
594*/
595
596/*!
597 \enum Qt::CaseSensitivity
598
599 \value CaseInsensitive
600 \value CaseSensitive
601*/
602
603/*!
604 \enum Qt::ToolBarArea
605
606 \value LeftToolBarArea
607 \value RightToolBarArea
608 \value TopToolBarArea
609 \value BottomToolBarArea
610 \value AllToolBarAreas
611 \value NoToolBarArea
612
613 \omitvalue ToolBarArea_Mask
614*/
615
616/*!
617 \enum Qt::DockWidgetArea
618
619 \value LeftDockWidgetArea
620 \value RightDockWidgetArea
621 \value TopDockWidgetArea
622 \value BottomDockWidgetArea
623 \value AllDockWidgetAreas
624 \value NoDockWidgetArea
625
626 \omitvalue DockWidgetArea_Mask
627*/
628
629/*!
630 \enum Qt::BackgroundMode
631
632 \compat
633
634 \value FixedColor
635 \value FixedPixmap
636 \value NoBackground
637 \value PaletteForeground
638 \value PaletteButton
639 \value PaletteLight
640 \value PaletteMidlight
641 \value PaletteDark
642 \value PaletteMid
643 \value PaletteText
644 \value PaletteBrightText
645 \value PaletteBase
646 \value PaletteBackground
647 \value PaletteShadow
648 \value PaletteHighlight
649 \value PaletteHighlightedText
650 \value PaletteButtonText
651 \value PaletteLink
652 \value PaletteLinkVisited
653 \value X11ParentRelative
654*/
655
656/*!
657 \enum Qt::ImageConversionFlag
658
659 The options marked "(default)" are set if no other values from
660 the list are included (since the defaults are zero):
661
662 Color/Mono preference (ignored for QBitmap):
663
664 \value AutoColor (default) - If the image has \link
665 QImage::depth() depth\endlink 1 and contains only
666 black and white pixels, the pixmap becomes monochrome.
667 \value ColorOnly The pixmap is dithered/converted to the
668 \link QPixmap::defaultDepth() native display depth\endlink.
669 \value MonoOnly The pixmap becomes monochrome. If necessary,
670 it is dithered using the chosen dithering algorithm.
671
672 Dithering mode preference for RGB channels:
673
674 \value DiffuseDither (default) - A high-quality dither.
675 \value OrderedDither A faster, more ordered dither.
676 \value ThresholdDither No dithering; closest color is used.
677
678 Dithering mode preference for alpha channel:
679
680 \value ThresholdAlphaDither (default) - No dithering.
681 \value OrderedAlphaDither A faster, more ordered dither.
682 \value DiffuseAlphaDither A high-quality dither.
683 \omitvalue NoAlpha
684
685 Color matching versus dithering preference:
686
687 \value PreferDither (default when converting to a pixmap) - Always dither
688 32-bit images when the image is converted to 8 bits.
689 \value AvoidDither (default when converting for the purpose of saving to
690 file) - Dither 32-bit images only if the image has more than 256
691 colors and it is being converted to 8 bits.
692 \omitvalue AutoDither
693
694 \omitvalue ColorMode_Mask
695 \omitvalue Dither_Mask
696 \omitvalue AlphaDither_Mask
697 \omitvalue DitherMode_Mask
698 \omitvalue NoOpaqueDetection
699*/
700
701/*! \enum Qt::GUIStyle
702
703 \compat
704
705 \value WindowsStyle
706 \value MotifStyle
707 \value MacStyle
708 \value Win3Style
709 \value PMStyle
710*/
711
712/*!
713 \enum Qt::UIEffect
714
715 This enum describes the available UI effects.
716
717 By default, Qt will try to use the platform specific desktop
718 settings for each effect. Use the
719 QApplication::setDesktopSettingsAware() function (passing \c false
720 as argument) to prevent this, and the
721 QApplication::setEffectEnabled() to enable or disable a particular
722 effect.
723
724 Note that all effects are disabled on screens running at less than
725 16-bit color depth.
726
727 \omitvalue UI_General
728
729 \value UI_AnimateMenu Show animated menus.
730 \value UI_FadeMenu Show faded menus.
731 \value UI_AnimateCombo Show animated comboboxes.
732 \value UI_AnimateTooltip Show tooltip animations.
733 \value UI_FadeTooltip Show tooltip fading effects.
734 \value UI_AnimateToolBox Reserved
735
736 \sa QApplication::setEffectEnabled(), QApplication::setDesktopSettingsAware()
737*/
738
739/*! \enum Qt::AspectRatioMode
740
741 This enum type defines what happens to the aspect ratio when
742 scaling an rectangle.
743
744 \image qimage-scaling.png
745
746 \value IgnoreAspectRatio The size is scaled freely. The aspect
747 ratio is not preserved.
748 \value KeepAspectRatio The size is scaled to a rectangle as
749 large as possible inside a given
750 rectangle, preserving the aspect ratio.
751 \value KeepAspectRatioByExpanding The size is scaled to a
752 rectangle as small as possible
753 outside a given rectangle,
754 preserving the aspect ratio.
755
756 \omitvalue ScaleFree
757 \omitvalue ScaleMin
758 \omitvalue ScaleMax
759
760 \sa QSize::scale(), QImage::scaled()
761*/
762
763/*! \typedef Qt::ScaleMode
764 \compat
765
766 Use Qt::AspectRatioMode instead.
767
768 The enum values have been renamed as follows:
769
770 \table
771 \row \i Old enum value \i New enum value
772 \row \i Qt::ScaleFree \i Qt::IgnoreAspectRatio
773 \row \i Qt::ScaleMin \i Qt::KeepAspectRatio
774 \row \i Qt::ScaleMax \i Qt::KeepAspectRatioByExpanding
775 \endtable
776*/
777
778/*! \enum Qt::TransformationMode
779
780 This enum type defines whether image transformations (e.g.,
781 scaling) should be smooth or not.
782
783 \value FastTransformation The transformation is performed
784 quickly, with no smoothing.
785 \value SmoothTransformation The resulting image is transformed
786 using bilinear filtering.
787
788 \sa QImage::scaled()
789*/
790
791/*! \enum Qt::Axis
792
793 This enum type defines three values to represent the three
794 axes in the cartesian coordinate system.
795
796 \value XAxis The X axis.
797 \value YAxis The Y axis.
798 \value ZAxis The Z axis.
799
800 \sa QTransform::rotate(), QTransform::rotateRadians()
801 */
802
803/*!
804 \enum Qt::WidgetAttribute
805
806 \keyword widget attributes
807
808 This enum type is used to specify various widget attributes.
809 Attributes are set and cleared with QWidget::setAttribute(), and
810 queried with QWidget::testAttribute(), although some have special
811 convenience functions which are mentioned below.
812
813 \value WA_AcceptDrops Allows data from drag and drop operations
814 to be dropped onto the widget (see QWidget::setAcceptDrops()).
815
816 \value WA_AlwaysShowToolTips Enables tooltips for inactive windows.
817
818 \value WA_ContentsPropagated This flag is superfluous and
819 obsolete; it no longer has any effect. Since Qt 4.1, all widgets
820 that do not set WA_PaintOnScreen propagate their contents.
821
822 \value WA_CustomWhatsThis Indicates that the widget wants to
823 continue operating normally in "What's This?" mode. This is set by the
824 widget's author.
825
826 \value WA_DeleteOnClose Makes Qt delete this widget when the
827 widget has accepted the close event (see QWidget::closeEvent()).
828
829 \value WA_Disabled Indicates that the widget is disabled, i.e.
830 it does not receive any mouse or keyboard events. There is also a
831 getter functions QWidget::isEnabled(). This is set/cleared by the
832 Qt kernel.
833
834 \omitvalue WA_DropSiteRegistered
835 \omitvalue WA_ForceAcceptDrops
836
837 \value WA_ForceDisabled Indicates that the widget is
838 explicitly disabled, i.e. it will remain disabled even when all
839 its ancestors are set to the enabled state. This implies
840 WA_Disabled. This is set/cleared by QWidget::setEnabled() and
841 QWidget::setDisabled().
842
843 \value WA_ForceUpdatesDisabled Indicates that updates are
844 explicitly disabled for the widget; i.e. it will remain disabled
845 even when all its ancestors are set to the updates-enabled state.
846 This implies WA_UpdatesDisabled. This is set/cleared by
847 QWidget::setUpdatesEnabled().
848
849 \value WA_GroupLeader
850 \e{This attribute has been deprecated.} Use QWidget::windowModality
851 instead.
852
853 \value WA_Hover Forces Qt to generate paint events when the mouse
854 enters or leaves the widget. This feature is typically used when
855 implementing custom styles; see the \l{widgets/styles}{Styles}
856 example for details.
857
858 \value WA_InputMethodEnabled Enables input methods for Asian languages.
859 Must be set when creating custom text editing widgets.
860 On Windows CE this flag can be used in addition to
861 QApplication::autoSipEnabled to automatically display the SIP when
862 entering a widget.
863
864 \value WA_KeyboardFocusChange Set on a toplevel window when
865 the users changes focus with the keyboard (tab, backtab, or shortcut).
866
867 \value WA_KeyCompression Enables key event compression if set,
868 and disables it if not set. By default key compression is off, so
869 widgets receive one key press event for each key press (or more,
870 since autorepeat is usually on). If you turn it on and your
871 program doesn't keep up with key input, Qt may try to compress key
872 events so that more than one character can be processed in each
873 event.
874 For example, a word processor widget might receive 2, 3 or more
875 characters in each QKeyEvent::text(), if the layout recalculation
876 takes too long for the CPU.
877 If a widget supports multiple character unicode input, it is
878 always safe to turn the compression on.
879 Qt performs key event compression only for printable characters.
880 Qt::Modifier keys, cursor movement keys, function keys and
881 miscellaneous action keys (e.g. Escape, Enter, Backspace,
882 PrintScreen) will stop key event compression, even if there are
883 more compressible key events available.
884 Platforms other than Mac and X11 do not support this compression,
885 in which case turning it on will have no effect.
886 This is set/cleared by the widget's author.
887
888 \value WA_LayoutOnEntireRect Indicates that the widget
889 wants QLayout to operate on the entire QWidget::rect(), not only
890 on QWidget::contentsRect(). This is set by the widget's author.
891
892 \value WA_LayoutUsesWidgetRect Ignore the layout item rect from the style
893 when laying out this widget with QLayout. This makes a difference in
894 QMacStyle and QPlastiqueStyle for some widgets.
895
896 \value WA_MacNoClickThrough When a widget that has this attribute set
897 is clicked, and its window is inactive, the click will make the window
898 active but won't be seen by the widget. Typical use of this attribute
899 is on widgets with "destructive" actions, such as a "Delete" button.
900 WA_MacNoClickThrough also applies to all child widgets of the widget
901 that has it set.
902
903 \value WA_MacOpaqueSizeGrip Indicates that the native Carbon size grip
904 should be opaque instead of transparent (the default). This attribute
905 is only applicable to Mac OS X and is set by the widget's author.
906
907 \value WA_MacShowFocusRect Indicates that this widget should get a
908 QFocusFrame around it. Some widgets draw their own focus halo
909 regardless of this attribute. Not that the QWidget::focusPolicy
910 also plays the main role in whether something is given focus or
911 not, this only controls whether or not this gets the focus
912 frame. This attribute is only applicable to Mac OS X.
913
914 \value WA_MacNormalSize Indicates the widget should have the
915 normal size for widgets in Mac OS X. This attribute is only
916 applicable to Mac OS X.
917
918 \value WA_MacSmallSize Indicates the widget should have the small
919 size for widgets in Mac OS X. This attribute is only applicable to
920 Mac OS X.
921
922 \value WA_MacMiniSize Indicates the widget should have the mini
923 size for widgets in Mac OS X. This attribute is only applicable to
924 Mac OS X.
925
926 \value WA_MacVariableSize Indicates the widget can choose between
927 alternative sizes for widgets to avoid clipping.
928 This attribute is only applicable to Mac OS X.
929
930 \value WA_MacBrushedMetal Indicates the widget should be drawn in
931 the brushed metal style as supported by the windowing system. This
932 attribute is only applicable to Mac OS X.
933
934 \omitvalue WA_MacMetalStyle
935
936 \value WA_Mapped Indicates that the widget is mapped on screen.
937 This is set/cleared by the Qt kernel.
938
939 \value WA_MouseNoMask Makes the widget receive mouse events for
940 the entire widget regardless of the currently set mask,
941 overriding QWidget::setMask(). This is not applicable for
942 top-level windows.
943
944 \value WA_MouseTracking Indicates that the widget has mouse
945 tracking enabled. See QWidget::mouseTracking.
946
947 \value WA_Moved Indicates that the widget has an explicit
948 position. This is set/cleared by QWidget::move() and
949 by QWidget::setGeometry().
950
951 \value WA_MSWindowsUseDirect3D Makes drawing to a widget
952 with this attribute set use the Direct3D paint engine, if the
953 Direct3D paint engine is available. \bold {This functionality
954 is experimental.}
955
956 \value WA_NoBackground This value is obsolete. Use
957 WA_OpaquePaintEvent instead.
958
959 \value WA_NoChildEventsForParent Indicates that the widget does
960 not want ChildAdded or ChildRemoved events sent to its
961 parent. This is rarely necessary but can help to avoid automatic
962 insertion widgets like splitters and layouts. This is set by a
963 widget's author.
964
965 \value WA_NoChildEventsFromChildren Indicates that the widget does
966 not want to receive ChildAdded or ChildRemoved events sent from its
967 children. This is set by a widget's author.
968
969 \value WA_NoMouseReplay Used for pop-up widgets. Indicates that the most
970 recent mouse press event should not be replayed when the pop-up widget
971 closes. The flag is set by the widget's author and cleared by the Qt kernel
972 every time the widget receives a new mouse event.
973
974 \value WA_NoMousePropagation Prohibits mouse events from being propagated
975 to the widget's parent. This attribute is disabled by default.
976
977 \value WA_TransparentForMouseEvents When enabled, this attribute disables
978 the delivery of mouse events to the widget and its children. Mouse events
979 are delivered to other widgets as if the widget and its children were not
980 present in the widget hierarchy; mouse clicks and other events effectively
981 "pass through" them. This attribute is disabled by default.
982
983 \value WA_NoSystemBackground Indicates that the widget has no background,
984 i.e. when the widget receives paint events, the background is not
985 automatically repainted. \note Unlike WA_OpaquePaintEvent, newly exposed
986 areas are \bold never filled with the background (e.g., after showing a
987 window for the first time the user can see "through" it until the
988 application processes the paint events). This flag is set or cleared by the
989 widget's author.
990
991 \value WA_OpaquePaintEvent Indicates that the widget paints all its pixels
992 when it receives a paint event. Thus, it is not required for operations
993 like updating, resizing, scrolling and focus changes to erase the widget
994 before generating paint events. The use of WA_OpaquePaintEvent provides a
995 small optimization by helping to reduce flicker on systems that do not
996 support double buffering and avoiding computational cycles necessary to
997 erase the background prior to painting. \note Unlike
998 WA_NoSystemBackground, WA_OpaquePaintEvent makes an effort to avoid
999 transparent window backgrounds. This flag is set or cleared by the widget's
1000 author.
1001
1002 \value WA_OutsideWSRange Indicates that the widget is outside
1003 the valid range of the window system's coordinate system. A widget
1004 outside the valid range cannot be mapped on screen. This is
1005 set/cleared by the Qt kernel.
1006
1007 \value WA_PaintOnScreen Indicates that the widget wants to draw directly
1008 onto the screen. Widgets with this attribute set do not participate in
1009 composition management, i.e. they cannot be semi-transparent or shine
1010 through semi-transparent overlapping widgets. \note This flag is only
1011 supported on X11 and it disables double buffering. On Qt for Embedded
1012 Linux, the flag only works when set on a top-level widget and it relies on
1013 support from the active screen driver. This flag is set or cleared by the
1014 widget's author. To render outside of Qt's paint system, e.g., if you
1015 require native painting primitives, you need to reimplement
1016 QWidget::paintEngine() to return 0 and set this flag.
1017
1018 \value WA_PaintOutsidePaintEvent Makes it possible to use QPainter to
1019 paint on the widget outside \l{QWidget::paintEvent()}{paintEvent()}. This
1020 flag is not supported on Windows, Mac OS X or Embedded Linux. We recommend
1021 that you use it only when porting Qt 3 code to Qt 4.
1022
1023 \value WA_PaintUnclipped Makes all painters operating on this widget
1024 unclipped. Children of this widget or other widgets in front of it do not
1025 clip the area the painter can paint on. This flag is only supported for
1026 widgets with the WA_PaintOnScreen flag set. The preferred way to do this in
1027 a cross platform way is to create a transparent widget that lies in front
1028 of the other widgets.
1029
1030 \value WA_PendingMoveEvent Indicates that a move event is pending, e.g.,
1031 when a hidden widget was moved. This flag is set or cleared by the Qt
1032 kernel.
1033
1034 \value WA_PendingResizeEvent Indicates that a resize event is pending,
1035 e.g., when a hidden widget was resized. This flag is set or cleared by the
1036 Qt kernel.
1037
1038 \value WA_QuitOnClose Makes Qt quit the application when the last widget
1039 with the attribute set has accepted closeEvent(). This behavior can be
1040 modified with the QApplication::quitOnLastWindowClosed property. By default
1041 this attribute is set for all widgets of type Qt::Window.
1042
1043 \value WA_Resized Indicates that the widget has an explicit size. This flag
1044 is set or cleared by QWidget::resize() and QWidget::setGeometry().
1045
1046 \value WA_RightToLeft Indicates that the layout direction for the widget
1047 is right to left.
1048
1049 \value WA_SetCursor Indicates that the widget has a cursor of its own. This
1050 flag is set or cleared by QWidget::setCursor() and QWidget::unsetCursor().
1051
1052 \value WA_SetFont Indicates that the widget has a font of its own. This
1053 flag is set or cleared by QWidget::setFont().
1054
1055 \value WA_SetPalette Indicates that the widget has a palette of its own.
1056 This flag is set or cleared by QWidget::setPalette().
1057
1058 \value WA_SetStyle Indicates that the widget has a style of its own. This
1059 flag is set or cleared by QWidget::setStyle().
1060
1061 \value WA_ShowModal \e{This attribute has been deprecated.} Use
1062 QWidget::windowModality instead.
1063
1064 \value WA_StaticContents Indicates that the widget contents are north-west
1065 aligned and static. On resize, such a widget will receive paint events only
1066 for parts of itself that are newly visible. This flag is set or cleared by
1067 the widget's author.
1068
1069 \value WA_StyleSheet Indicates that the widget is styled using a
1070 \l{Qt Style Sheets}{style sheet}.
1071
1072 \value WA_TranslucentBackground Indicates that the widget should have a
1073 translucent background, i.e., any non-opaque regions of the widgets will be
1074 translucent because the widget will have an alpha channel. Setting this
1075 flag causes WA_NoSystemBackground to be set. On Windows the
1076 widget also needs the Qt::FramelessWindowHint window flag to be set.
1077 This flag is set or cleared by the widget's author.
1078
1079 \value WA_UnderMouse Indicates that the widget is under the mouse cursor.
1080 The value is not updated correctly during drag and drop operations. There
1081 is also a getter function, QWidget::underMouse(). This flag is set or
1082 cleared by the Qt kernel.
1083
1084 \value WA_UpdatesDisabled Indicates that updates are blocked (including the
1085 system background). This flag is set or cleared by the Qt kernel.
1086 \warning This flag must \e never be set or cleared by the widget's author.
1087
1088 \value WA_WindowModified Indicates that the window is marked as modified.
1089 On some platforms this flag will do nothing, on others (including Mac OS X
1090 and Windows) the window will take a modified appearance. This flag is set
1091 or cleared by QWidget::setWindowModified().
1092
1093 \value WA_WindowPropagation Makes a toplevel window inherit font and
1094 palette from its parent.
1095
1096 \value WA_MacAlwaysShowToolWindow On Mac OS X, show the tool window even
1097 when the application is not active. By default, all tool windows are
1098 hidden when the application is inactive.
1099
1100 \value WA_SetLocale Indicates the locale should be taken into consideration
1101 in the widget.
1102
1103 \value WA_StyledBackground Indicates the widget should be drawn using a
1104 styled background.
1105
1106 \value WA_ShowWithoutActivating Show the widget without making it active.
1107
1108 \value WA_NativeWindow Indicates that a native window is created for the
1109 widget. Enabling this flag will also force a native window for the widget's
1110 ancestors unless Qt::WA_DontCreateNativeAncestors is set.
1111
1112 \value WA_DontCreateNativeAncestors Indicates that the widget's ancestors
1113 are kept non-native even though the widget itself is native.
1114
1115 \value WA_X11NetWmWindowTypeDesktop Adds _NET_WM_WINDOW_TYPE_DESKTOP to the
1116 window's _NET_WM_WINDOW_TYPE X11 window property. See
1117 http://standards.freedesktop.org/wm-spec/ for more details. This attribute
1118 has no effect on non-X11 platforms.
1119
1120 \value WA_X11NetWmWindowTypeDock Adds _NET_WM_WINDOW_TYPE_DOCK to the
1121 window's _NET_WM_WINDOW_TYPE X11 window property. See
1122 http://standards.freedesktop.org/wm-spec/ for more details. This attribute
1123 has no effect on non-X11 platforms.
1124
1125 \value WA_X11NetWmWindowTypeToolBar Adds _NET_WM_WINDOW_TYPE_TOOLBAR to the
1126 window's _NET_WM_WINDOW_TYPE X11 window property. See
1127 http://standards.freedesktop.org/wm-spec/ for more details. This attribute
1128 has no effect on non-X11 platforms. \note Qt automaticaly sets this
1129 attribute for QToolBar.
1130
1131 \value WA_X11NetWmWindowTypeMenu Adds _NET_WM_WINDOW_TYPE_MENU to the
1132 window's _NET_WM_WINDOW_TYPE X11 window property. See
1133 http://standards.freedesktop.org/wm-spec/ for more details. This attribute
1134 has no effect on non-X11 platforms. \note Qt automatically sets this
1135 attribute for QMenu when torn-off.
1136
1137 \value WA_X11NetWmWindowTypeUtility Adds _NET_WM_WINDOW_TYPE_UTILITY to the
1138 window's _NET_WM_WINDOW_TYPE X11 window property. See
1139 http://standards.freedesktop.org/wm-spec/ for more details. This attribute
1140 has no effect on non-X11 platforms. \note Qt automatically sets this
1141 attribute for the Qt::Tool window type.
1142
1143 \value WA_X11NetWmWindowTypeSplash Adds _NET_WM_WINDOW_TYPE_SPLASH to the
1144 window's _NET_WM_WINDOW_TYPE X11 window property. See
1145 http://standards.freedesktop.org/wm-spec/ for more details. This attribute
1146 has no effect on non-X11 platforms. \note Qt automatically sets this
1147 attribute for the Qt::SplashScreen window type.
1148
1149 \value WA_X11NetWmWindowTypeDialog Adds _NET_WM_WINDOW_TYPE_DIALOG
1150 to the window's _NET_WM_WINDOW_TYPE X11 window property. See
1151 http://standards.freedesktop.org/wm-spec/ for more details. This
1152 attribute has no effect on non-X11 platforms. \note Qt automatically sets
1153 this attribute for the Qt::Dialog and Qt::Sheet window types.
1154
1155 \value WA_X11NetWmWindowTypeDropDownMenu Adds
1156 _NET_WM_WINDOW_TYPE_DROPDOWN_MENU to the window's
1157 _NET_WM_WINDOW_TYPE X11 window property. See
1158 http://standards.freedesktop.org/wm-spec/ for more details. This
1159 attribute has no effect on non-X11 platforms. \note Qt
1160 automatically sets this attribute for QMenus added to a QMenuBar.
1161
1162 \value WA_X11NetWmWindowTypePopupMenu Adds _NET_WM_WINDOW_TYPE_POPUP_MENU
1163 to the window's _NET_WM_WINDOW_TYPE X11 window property. See
1164 http://standards.freedesktop.org/wm-spec/ for more details. This attribute
1165 has no effect on non-X11 platforms. \note Qt automatically sets this
1166 attribute for QMenu.
1167
1168 \value WA_X11NetWmWindowTypeToolTip Adds _NET_WM_WINDOW_TYPE_TOOLTIP to the
1169 window's _NET_WM_WINDOW_TYPE X11 window property. See
1170 http://standards.freedesktop.org/wm-spec/ for more details. This attribute
1171 has no effect on non-X11 platforms. \note Qt automatically sets this
1172 attribute for the Qt::ToolTip window type.
1173
1174 \value WA_X11NetWmWindowTypeNotification Adds
1175 _NET_WM_WINDOW_TYPE_NOTIFICATION to the window's _NET_WM_WINDOW_TYPE X11
1176 window property. See http://standards.freedesktop.org/wm-spec/ for more
1177 details. This attribute has no effect on non-X11 platforms.
1178
1179 \value WA_X11NetWmWindowTypeCombo Adds _NET_WM_WINDOW_TYPE_COMBO
1180 to the window's _NET_WM_WINDOW_TYPE X11 window property. See
1181 http://standards.freedesktop.org/wm-spec/ for more details. This attribute
1182 has no effect on non-X11 platforms. \note Qt automatically sets this
1183 attribute for the QComboBox pop-up.
1184
1185 \value WA_X11NetWmWindowTypeDND Adds _NET_WM_WINDOW_TYPE_DND to
1186 the window's _NET_WM_WINDOW_TYPE X11 window property. See
1187 http://standards.freedesktop.org/wm-spec/ for more details. This attribute
1188 has no effect on non-X11 platforms. \note Qt automatically sets this
1189 attribute on the feedback widget used during a drag.
1190
1191 \value WA_MacFrameworkScaled Enables resolution independence aware mode
1192 on Mac when using Carbon. This attribute has no effect on Cocoa.
1193 The attribute is off by default and can be enabled on a per-window basis.
1194
1195 \omitvalue WA_SetLayoutDirection
1196 \omitvalue WA_InputMethodTransparent
1197 \omitvalue WA_WState_CompressKeys
1198 \omitvalue WA_WState_ConfigPending
1199 \omitvalue WA_WState_Created
1200 \omitvalue WA_WState_DND
1201 \omitvalue WA_WState_ExplicitShowHide
1202 \omitvalue WA_WState_Hidden
1203 \omitvalue WA_WState_InPaintEvent
1204 \omitvalue WA_WState_OwnSizePolicy
1205 \omitvalue WA_WState_Polished
1206 \omitvalue WA_WState_Reparented
1207 \omitvalue WA_WState_Visible
1208 \omitvalue WA_SetWindowIcon
1209 \omitvalue WA_PendingUpdate
1210 \omitvalue WA_LaidOut
1211 \omitvalue WA_GrabbedShortcut
1212 \omitvalue WA_DontShowOnScreen
1213 \omitvalue WA_InvalidSize
1214 \omitvalue WA_ForceUpdatesDisabled
1215 \omitvalue WA_NoX11EventCompression
1216 \omitvalue WA_TintedBackground
1217 \omitvalue WA_X11OpenGLOverlay
1218 \omitvalue WA_CanHostQMdiSubWindowTitleBar
1219 \omitvalue WA_AttributeCount
1220 \omitvalue WA_StyleSheet
1221 \omitvalue WA_X11BypassTransientForHint
1222 \omitvalue WA_SetWindowModality
1223 \omitvalue WA_WState_WindowOpacitySet
1224*/
1225
1226/*! \typedef Qt::HANDLE
1227
1228 Platform-specific handle type for system objects. This is
1229 equivalent to \c{void *} on Windows and Mac OS X, and embedded
1230 Linux, and to \c{unsigned long} on X11.
1231
1232 \warning Using this type is not portable.
1233*/
1234
1235/*!
1236 \enum Qt::Key
1237
1238 The key names used by Qt.
1239
1240 \value Key_Escape
1241 \value Key_Tab
1242 \value Key_Backtab
1243 \omitvalue Key_BackTab
1244 \value Key_Backspace
1245 \omitvalue Key_BackSpace
1246 \value Key_Return
1247 \value Key_Enter Typically located on the keypad.
1248 \value Key_Insert
1249 \value Key_Delete
1250 \value Key_Pause
1251 \value Key_Print
1252 \value Key_SysReq
1253 \value Key_Clear
1254 \value Key_Home
1255 \value Key_End
1256 \value Key_Left
1257 \value Key_Up
1258 \value Key_Right
1259 \value Key_Down
1260 \value Key_PageUp
1261 \omitvalue Key_Prior
1262 \value Key_PageDown
1263 \omitvalue Key_Next
1264 \value Key_Shift
1265 \value Key_Control On Mac OS X, this corresponds to the Command keys.
1266 \value Key_Meta On Mac OS X, this corresponds to the Control keys.
1267 On Windows keyboards, this key is mapped to the
1268 Windows key.
1269 \value Key_Alt
1270 \value Key_AltGr On Windows, when the KeyDown event for this key is
1271 sent, the Ctrl+Alt modifiers are also set.
1272 \value Key_CapsLock
1273 \value Key_NumLock
1274 \value Key_ScrollLock
1275 \value Key_F1
1276 \value Key_F2
1277 \value Key_F3
1278 \value Key_F4
1279 \value Key_F5
1280 \value Key_F6
1281 \value Key_F7
1282 \value Key_F8
1283 \value Key_F9
1284 \value Key_F10
1285 \value Key_F11
1286 \value Key_F12
1287 \value Key_F13
1288 \value Key_F14
1289 \value Key_F15
1290 \value Key_F16
1291 \value Key_F17
1292 \value Key_F18
1293 \value Key_F19
1294 \value Key_F20
1295 \value Key_F21
1296 \value Key_F22
1297 \value Key_F23
1298 \value Key_F24
1299 \value Key_F25
1300 \value Key_F26
1301 \value Key_F27
1302 \value Key_F28
1303 \value Key_F29
1304 \value Key_F30
1305 \value Key_F31
1306 \value Key_F32
1307 \value Key_F33
1308 \value Key_F34
1309 \value Key_F35
1310 \value Key_Super_L
1311 \value Key_Super_R
1312 \value Key_Menu
1313 \value Key_Hyper_L
1314 \value Key_Hyper_R
1315 \value Key_Help
1316 \value Key_Direction_L
1317 \value Key_Direction_R
1318 \value Key_Space
1319 \value Key_Any
1320 \value Key_Exclam
1321 \value Key_QuoteDbl
1322 \value Key_NumberSign
1323 \value Key_Dollar
1324 \value Key_Percent
1325 \value Key_Ampersand
1326 \value Key_Apostrophe
1327 \value Key_ParenLeft
1328 \value Key_ParenRight
1329 \value Key_Asterisk
1330 \value Key_Plus
1331 \value Key_Comma
1332 \value Key_Minus
1333 \value Key_Period
1334 \value Key_Slash
1335 \value Key_0
1336 \value Key_1
1337 \value Key_2
1338 \value Key_3
1339 \value Key_4
1340 \value Key_5
1341 \value Key_6
1342 \value Key_7
1343 \value Key_8
1344 \value Key_9
1345 \value Key_Colon
1346 \value Key_Semicolon
1347 \value Key_Less
1348 \value Key_Equal
1349 \value Key_Greater
1350 \value Key_Question
1351 \value Key_At
1352 \value Key_A
1353 \value Key_B
1354 \value Key_C
1355 \value Key_D
1356 \value Key_E
1357 \value Key_F
1358 \value Key_G
1359 \value Key_H
1360 \value Key_I
1361 \value Key_J
1362 \value Key_K
1363 \value Key_L
1364 \value Key_M
1365 \value Key_N
1366 \value Key_O
1367 \value Key_P
1368 \value Key_Q
1369 \value Key_R
1370 \value Key_S
1371 \value Key_T
1372 \value Key_U
1373 \value Key_V
1374 \value Key_W
1375 \value Key_X
1376 \value Key_Y
1377 \value Key_Z
1378 \value Key_BracketLeft
1379 \value Key_Backslash
1380 \value Key_BracketRight
1381 \value Key_AsciiCircum
1382 \value Key_Underscore
1383 \value Key_QuoteLeft
1384 \value Key_BraceLeft
1385 \value Key_Bar
1386 \value Key_BraceRight
1387 \value Key_AsciiTilde
1388 \value Key_nobreakspace
1389 \value Key_exclamdown
1390 \value Key_cent
1391 \value Key_sterling
1392 \value Key_currency
1393 \value Key_yen
1394 \value Key_brokenbar
1395 \value Key_section
1396 \value Key_diaeresis
1397 \value Key_copyright
1398 \value Key_ordfeminine
1399 \value Key_guillemotleft
1400 \value Key_notsign
1401 \value Key_hyphen
1402 \value Key_registered
1403 \value Key_macron
1404 \value Key_degree
1405 \value Key_plusminus
1406 \value Key_twosuperior
1407 \value Key_threesuperior
1408 \value Key_acute
1409 \value Key_mu
1410 \value Key_paragraph
1411 \value Key_periodcentered
1412 \value Key_cedilla
1413 \value Key_onesuperior
1414 \value Key_masculine
1415 \value Key_guillemotright
1416 \value Key_onequarter
1417 \value Key_onehalf
1418 \value Key_threequarters
1419 \value Key_questiondown
1420 \value Key_Agrave
1421 \value Key_Aacute
1422 \value Key_Acircumflex
1423 \value Key_Atilde
1424 \value Key_Adiaeresis
1425 \value Key_Aring
1426 \value Key_AE
1427 \value Key_Ccedilla
1428 \value Key_Egrave
1429 \value Key_Eacute
1430 \value Key_Ecircumflex
1431 \value Key_Ediaeresis
1432 \value Key_Igrave
1433 \value Key_Iacute
1434 \value Key_Icircumflex
1435 \value Key_Idiaeresis
1436 \value Key_ETH
1437 \value Key_Ntilde
1438 \value Key_Ograve
1439 \value Key_Oacute
1440 \value Key_Ocircumflex
1441 \value Key_Otilde
1442 \value Key_Odiaeresis
1443 \value Key_multiply
1444 \value Key_Ooblique
1445 \value Key_Ugrave
1446 \value Key_Uacute
1447 \value Key_Ucircumflex
1448 \value Key_Udiaeresis
1449 \value Key_Yacute
1450 \value Key_THORN
1451 \value Key_ssharp
1452 \omitvalue Key_agrave
1453 \omitvalue Key_aacute
1454 \omitvalue Key_acircumflex
1455 \omitvalue Key_atilde
1456 \omitvalue Key_adiaeresis
1457 \omitvalue Key_aring
1458 \omitvalue Key_ae
1459 \omitvalue Key_ccedilla
1460 \omitvalue Key_egrave
1461 \omitvalue Key_eacute
1462 \omitvalue Key_ecircumflex
1463 \omitvalue Key_ediaeresis
1464 \omitvalue Key_igrave
1465 \omitvalue Key_iacute
1466 \omitvalue Key_icircumflex
1467 \omitvalue Key_idiaeresis
1468 \omitvalue Key_eth
1469 \omitvalue Key_ntilde
1470 \omitvalue Key_ograve
1471 \omitvalue Key_oacute
1472 \omitvalue Key_ocircumflex
1473 \omitvalue Key_otilde
1474 \omitvalue Key_odiaeresis
1475 \value Key_division
1476 \omitvalue Key_oslash
1477 \omitvalue Key_ugrave
1478 \omitvalue Key_uacute
1479 \omitvalue Key_ucircumflex
1480 \omitvalue Key_udiaeresis
1481 \omitvalue Key_yacute
1482 \omitvalue Key_thorn
1483 \value Key_ydiaeresis
1484 \value Key_Multi_key
1485 \value Key_Codeinput
1486 \value Key_SingleCandidate
1487 \value Key_MultipleCandidate
1488 \value Key_PreviousCandidate
1489 \value Key_Mode_switch
1490 \value Key_Kanji
1491 \value Key_Muhenkan
1492 \value Key_Henkan
1493 \value Key_Romaji
1494 \value Key_Hiragana
1495 \value Key_Katakana
1496 \value Key_Hiragana_Katakana
1497 \value Key_Zenkaku
1498 \value Key_Hankaku
1499 \value Key_Zenkaku_Hankaku
1500 \value Key_Touroku
1501 \value Key_Massyo
1502 \value Key_Kana_Lock
1503 \value Key_Kana_Shift
1504 \value Key_Eisu_Shift
1505 \value Key_Eisu_toggle
1506 \value Key_Hangul
1507 \value Key_Hangul_Start
1508 \value Key_Hangul_End
1509 \value Key_Hangul_Hanja
1510 \value Key_Hangul_Jamo
1511 \value Key_Hangul_Romaja
1512 \value Key_Hangul_Jeonja
1513 \value Key_Hangul_Banja
1514 \value Key_Hangul_PreHanja
1515 \value Key_Hangul_PostHanja
1516 \value Key_Hangul_Special
1517 \value Key_Dead_Grave
1518 \value Key_Dead_Acute
1519 \value Key_Dead_Circumflex
1520 \value Key_Dead_Tilde
1521 \value Key_Dead_Macron
1522 \value Key_Dead_Breve
1523 \value Key_Dead_Abovedot
1524 \value Key_Dead_Diaeresis
1525 \value Key_Dead_Abovering
1526 \value Key_Dead_Doubleacute
1527 \value Key_Dead_Caron
1528 \value Key_Dead_Cedilla
1529 \value Key_Dead_Ogonek
1530 \value Key_Dead_Iota
1531 \value Key_Dead_Voiced_Sound
1532 \value Key_Dead_Semivoiced_Sound
1533 \value Key_Dead_Belowdot
1534 \value Key_Dead_Hook
1535 \value Key_Dead_Horn
1536 \value Key_Back
1537 \value Key_Forward
1538 \value Key_Stop
1539 \value Key_Refresh
1540 \value Key_VolumeDown
1541 \value Key_VolumeMute
1542 \value Key_VolumeUp
1543 \value Key_BassBoost
1544 \value Key_BassUp
1545 \value Key_BassDown
1546 \value Key_TrebleUp
1547 \value Key_TrebleDown
1548 \value Key_MediaPlay
1549 \value Key_MediaStop
1550 \value Key_MediaPrevious
1551 \omitvalue Key_MediaPrev
1552 \value Key_MediaNext
1553 \value Key_MediaRecord
1554 \value Key_HomePage
1555 \value Key_Favorites
1556 \value Key_Search
1557 \value Key_Standby
1558 \value Key_OpenUrl
1559 \value Key_LaunchMail
1560 \value Key_LaunchMedia
1561 \value Key_Launch0
1562 \value Key_Launch1
1563 \value Key_Launch2
1564 \value Key_Launch3
1565 \value Key_Launch4
1566 \value Key_Launch5
1567 \value Key_Launch6
1568 \value Key_Launch7
1569 \value Key_Launch8
1570 \value Key_Launch9
1571 \value Key_LaunchA
1572 \value Key_LaunchB
1573 \value Key_LaunchC
1574 \value Key_LaunchD
1575 \value Key_LaunchE
1576 \value Key_LaunchF
1577 \value Key_MediaLast
1578 \value Key_unknown
1579
1580 \value Key_Call
1581 \value Key_Context1
1582 \value Key_Context2
1583 \value Key_Context3
1584 \value Key_Context4
1585 \value Key_Flip
1586 \value Key_Hangup
1587 \value Key_No
1588 \value Key_Select
1589 \value Key_Yes
1590
1591 \value Key_Execute
1592 \value Key_Printer
1593 \value Key_Play
1594 \value Key_Sleep
1595 \value Key_Zoom
1596 \value Key_Cancel
1597
1598 \sa QKeyEvent::key()
1599*/
1600
1601/*!
1602 \enum Qt::HitTestAccuracy
1603
1604 This enum contains the types of accuracy that can be used by the
1605 QTextDocument class when testing for mouse clicks on text documents.
1606
1607 \value ExactHit The point at which input occurred must coincide
1608 exactly with input-sensitive parts of the document.
1609 \value FuzzyHit The point at which input occurred can lie close to
1610 input-sensitive parts of the document.
1611
1612 This enum is defined in the \c <QTextDocument> header file.
1613*/
1614
1615/*!
1616 \enum Qt::WhiteSpaceMode
1617
1618 This enum describes the types of whitespace mode that are used by
1619 the QTextDocument class to meet the requirements of different kinds
1620 of textual information.
1621
1622 \value WhiteSpaceNormal The whitespace mode used to display
1623 normal word wrapped text in paragraphs.
1624 \value WhiteSpacePre A preformatted text mode in which
1625 whitespace is reproduced exactly.
1626 \value WhiteSpaceNoWrap
1627
1628 \omitvalue WhiteSpaceModeUndefined
1629
1630 This enum is defined in the \c <QTextDocument> header file.
1631*/
1632
1633/*!
1634 \enum Qt::ButtonState_enum
1635 \compat
1636 \value ShiftButton
1637 \value ControlButton
1638 \value AltButton
1639 \value MetaButton
1640 \value Keypad
1641 \value KeyButtonMask
1642
1643 Use Qt::KeyboardModifier instead.
1644*/
1645
1646/*!
1647 \typedef Qt::ButtonState
1648 \compat
1649
1650 Use Qt::KeyboardModifier instead.
1651*/
1652
1653/*!
1654 \enum Qt::CheckState
1655
1656 This enum describes the state of checkable items, controls, and widgets.
1657
1658 \value Unchecked The item is unchecked.
1659 \value PartiallyChecked The item is partially checked. Items in hierarchical models
1660 may be partially checked if some, but not all, of their
1661 children are checked.
1662 \value Checked The item is checked.
1663
1664 \sa QCheckBox, Qt::ItemFlags, Qt::ItemDataRole
1665*/
1666
1667
1668/*!
1669 \enum Qt::ToolButtonStyle
1670
1671 The style of the tool button, describing how the button's text and
1672 icon should be displayed.
1673
1674 \value ToolButtonIconOnly Only display the icon.
1675 \value ToolButtonTextOnly Only display the text.
1676 \value ToolButtonTextBesideIcon The text appears beside the icon.
1677 \value ToolButtonTextUnderIcon The text appears under the icon.
1678*/
1679
1680/*!
1681 \enum Qt::Corner
1682
1683 This enum type specifies a corner in a rectangle:
1684
1685 \value TopLeftCorner The top-left corner of the rectangle.
1686 \value TopRightCorner The top-right corner of the rectangle.
1687 \value BottomLeftCorner The bottom-left corner of the rectangle.
1688 \value BottomRightCorner The bottom-right corner of the rectangle.
1689
1690 \omitvalue TopLeft
1691 \omitvalue TopRight
1692 \omitvalue BottomLeft
1693 \omitvalue BottomRight
1694*/
1695
1696/*!
1697 \enum Qt::ScrollBarPolicy
1698
1699 This enum type describes the various modes of QAbstractScrollArea's scroll
1700 bars.
1701
1702 \value ScrollBarAsNeeded QAbstractScrollArea shows a scroll bar when the
1703 content is too large to fit and not otherwise. This is the
1704 default.
1705
1706 \value ScrollBarAlwaysOff QAbstractScrollArea never shows a scroll bar.
1707
1708 \value ScrollBarAlwaysOn QAbstractScrollArea always shows a scroll bar.
1709
1710 (The modes for the horizontal and vertical scroll bars are
1711 independent.)
1712*/
1713
1714/*!
1715 \enum Qt::ArrowType
1716
1717 \value NoArrow
1718 \value UpArrow
1719 \value DownArrow
1720 \value LeftArrow
1721 \value RightArrow
1722*/
1723
1724/*!
1725 \enum Qt::FocusReason
1726
1727 This enum specifies why the focus changed. It will be passed
1728 through QWidget::setFocus and can be retrieved in the QFocusEvent
1729 sent to the widget upon focus change.
1730
1731 \value MouseFocusReason A mouse action occurred.
1732 \value TabFocusReason The Tab key was pressed.
1733 \value BacktabFocusReason A Backtab occurred. The input for this may
1734 include the Shift or Control keys;
1735 e.g. Shift+Tab.
1736 \value ActiveWindowFocusReason The window system made this window either
1737 active or inactive.
1738 \value PopupFocusReason The application opened/closed a pop-up that
1739 grabbed/released the keyboard focus.
1740 \value ShortcutFocusReason The user typed a label's buddy shortcut
1741 \value MenuBarFocusReason The menu bar took focus.
1742 \value OtherFocusReason Another reason, usually application-specific.
1743
1744 \omitvalue NoFocusReason
1745
1746 \sa {Keyboard Focus}
1747*/
1748
1749/*!
1750 \enum Qt::WindowState
1751
1752 \keyword window state
1753
1754 This enum type is used to specify the current state of a top-level
1755 window.
1756
1757 The states are
1758
1759 \value WindowNoState The window has no state set (in normal state).
1760 \value WindowMinimized The window is minimized (i.e. iconified).
1761 \value WindowMaximized The window is maximized with a frame around it.
1762 \value WindowFullScreen The window fills the entire screen without any frame around it.
1763 \value WindowActive The window is the active window, i.e. it has keyboard focus.
1764
1765*/
1766
1767/*!
1768 \enum Qt::ContextMenuPolicy
1769
1770 This enum type defines the various policies a widget can have with
1771 respect to showing a context menu.
1772
1773 \value NoContextMenu the widget does not feature a context menu,
1774 context menu handling is deferred to the widget's parent.
1775 \value PreventContextMenu the widget does not feature a context
1776 menu, and in contrast to \c NoContextMenu, the handling is \e not
1777 deferred to the widget's parent. This means that all right mouse
1778 button events are guaranteed to be delivered to the widget itself
1779 through mousePressEvent(), and mouseReleaseEvent().
1780 \value DefaultContextMenu the widget's QWidget::contextMenuEvent() handler is called.
1781 \value ActionsContextMenu the widget displays its QWidget::actions() as context menu.
1782 \value CustomContextMenu the widget emits the QWidget::customContextMenuRequested() signal.
1783*/
1784
1785/*!
1786 \enum Qt::FocusPolicy
1787
1788 This enum type defines the various policies a widget can have with
1789 respect to acquiring keyboard focus.
1790
1791 \value TabFocus the widget accepts focus by tabbing.
1792 \value ClickFocus the widget accepts focus by clicking.
1793 \value StrongFocus the widget accepts focus by both tabbing
1794 and clicking. On Mac OS X this will also
1795 be indicate that the widget accepts tab focus
1796 when in 'Text/List focus mode'.
1797 \value WheelFocus like Qt::StrongFocus plus the widget accepts
1798 focus by using the mouse wheel.
1799 \value NoFocus the widget does not accept focus.
1800
1801*/
1802
1803/*!
1804 \enum Qt::ShortcutContext
1805
1806 For a QEvent::Shortcut event to occur, the shortcut's key sequence
1807 must be entered by the user in a context where the shortcut is
1808 active. The possible contexts are these:
1809
1810 \value WidgetShortcut The shortcut is active when its
1811 parent widget has focus.
1812 \value WidgetWithChildrenShortcut The shortcut is active
1813 when its parent widget, or any of its children has focus.
1814 Children which are top-level widgets, except pop-ups, are
1815 not affected by this shortcut context.
1816 \value WindowShortcut The shortcut is active when its
1817 parent widget is a logical subwidget of the
1818 active top-level window.
1819 \value ApplicationShortcut The shortcut is active when one of
1820 the applications windows are active.
1821*/
1822
1823/*!
1824 \typedef Qt::WFlags
1825
1826 Synonym for Qt::WindowFlags.
1827*/
1828
1829/*!
1830 \enum Qt::WindowType
1831
1832 \keyword window flag
1833
1834 This enum type is used to specify various window-system properties
1835 for the widget. They are fairly unusual but necessary in a few
1836 cases. Some of these flags depend on whether the underlying window
1837 manager supports them.
1838
1839 The main types are
1840
1841 \value Widget This is the default type for QWidget. Widgets of
1842 this type are child widgets if they have a parent,
1843 and independent windows if they have no parent.
1844 See also Qt::Window and Qt::SubWindow.
1845
1846 \value Window Indicates that the widget is a window, usually
1847 with a window system frame and a title bar,
1848 irrespective of whether the widget has a parent or
1849 not. Note that it is not possible to unset this
1850 flag if the widget does not have a parent.
1851
1852 \value Dialog Indicates that the widget is a window that should
1853 be decorated as a dialog (i.e., typically no
1854 maximize or minimize buttons in the title bar).
1855 This is the default type for QDialog. If you want
1856 to use it as a modal dialog, it should be launched
1857 from another window, or have a parent and used
1858 with the QWidget::windowModality property. If you make
1859 it modal, the dialog will prevent other top-level
1860 windows in the application from getting any input.
1861 We refer to a top-level window that has a parent
1862 as a \e secondary window.
1863
1864 \value Sheet Indicates that the widget is a Macintosh sheet.
1865
1866 \value Drawer Indicates that the widget is a Macintosh drawer.
1867
1868 \value Popup Indicates that the widget is a pop-up top-level
1869 window, i.e. that it is modal, but has a window
1870 system frame appropriate for pop-up menus.
1871
1872 \value Tool Indicates that the widget is a tool window. A tool
1873 window is often a small window with a smaller than
1874 usual title bar and decoration, typically used for
1875 collections of tool buttons. It there is a parent,
1876 the tool window will always be kept on top of it.
1877 If there isn't a parent, you may consider using
1878 Qt::WindowStaysOnTopHint as well. If the window
1879 system supports it, a tool window can be decorated
1880 with a somewhat lighter frame. It can also be
1881 combined with Qt::FramelessWindowHint.
1882 \br
1883 \br
1884 On Mac OS X, tool windows correspond to the
1885 \l{http://developer.apple.com/documentation/Carbon/Conceptual/HandlingWindowsControls/hitb-wind_cont_concept/chapter_2_section_2.html}{Floating}
1886 class of windows. This means that the window lives on a
1887 level above normal windows; it impossible to put a normal
1888 window on top of it. By default, tool windows will disappear
1889 when the application is inactive. This can be controlled by
1890 the Qt::WA_MacAlwaysShowToolWindow attribute.
1891
1892 \value ToolTip Indicates that the widget is a tooltip. This is
1893 used internally to implement
1894 \l{QWidget::toolTip}{tooltips}.
1895
1896 \value SplashScreen Indicates that the window is a splash screen.
1897 This is the default type for QSplashScreen.
1898
1899 \value Desktop Indicates that this widget is the desktop. This
1900 is the type for QDesktopWidget.
1901
1902 \value SubWindow Indicates that this widget is a sub-window, such
1903 as a QMdiSubWindow widget.
1904
1905 There are also a number of flags which you can use to customize
1906 the appearance of top-level windows. These have no effect on other
1907 windows:
1908
1909 \value MSWindowsFixedSizeDialogHint Gives the window a thin dialog border on Windows.
1910 This style is traditionally used for fixed-size dialogs.
1911
1912 \value MSWindowsOwnDC Gives the window its own display
1913 context on Windows.
1914
1915 \value X11BypassWindowManagerHint Bypass the window
1916 manager completely. This results in a borderless window
1917 that is not managed at all (i.e., no keyboard input unless
1918 you call QWidget::activateWindow() manually).
1919
1920 \value FramelessWindowHint Produces a borderless window.
1921 The user cannot move or resize a borderless window via the window
1922 system. On X11, the result of the flag is dependent on the window manager and its
1923 ability to understand Motif and/or NETWM hints. Most existing
1924 modern window managers can handle this.
1925
1926 The \c CustomizeWindowHint flag is used to enable customization of
1927 the window controls. This flag must be set to allow the \c
1928 WindowTitleHint, \c WindowSystemMenuHint, \c
1929 WindowMinimizeButtonHint, \c WindowMaximizeButtonHint and \c
1930 WindowCloseButtonHint flags to be changed.
1931
1932 \value CustomizeWindowHint Turns off the default window title hints.
1933
1934 \value WindowTitleHint Gives the window a title bar.
1935
1936 \value WindowSystemMenuHint Adds a window system menu, and
1937 possibly a close button (for example on Mac). If you need to hide
1938 or show a close button, it is more portable to use \c
1939 WindowCloseButtonHint.
1940
1941 \value WindowMinimizeButtonHint Adds a minimize button. On
1942 some platforms this implies Qt::WindowSystemMenuHint for it to work.
1943
1944 \value WindowMaximizeButtonHint Adds a maximize button. On
1945 some platforms this implies Qt::WindowSystemMenuHint for it to work.
1946
1947 \value WindowMinMaxButtonsHint Adds a minimize and a maximize
1948 button. On some platforms this implies Qt::WindowSystemMenuHint for it to work.
1949
1950 \value WindowCloseButtonHint Adds a close button. On
1951 some platforms this implies Qt::WindowSystemMenuHint for it
1952 to work.
1953
1954 \value WindowContextHelpButtonHint Adds a context help button to dialogs.
1955 On some platforms this implies Qt::WindowSystemMenuHint for it to work.
1956
1957 \value MacWindowToolBarButtonHint On Mac OS X adds a tool bar button (i.e.,
1958 the oblong button that is on the top right of windows that have toolbars.
1959
1960 \value BypassGraphicsProxyWidget Prevents the window and its children from
1961 automatically embedding themselves into a QGraphicsProxyWidget if the
1962 parent widget is already embedded. You can set this flag if you
1963 want your widget to always be a toplevel widget on the desktop,
1964 regardless of whether the parent widget is embedded in a scene or
1965 not.
1966
1967 \value WindowShadeButtonHint
1968
1969 \value WindowStaysOnTopHint Informs the window system that the
1970 window should stay on top of all other windows. Note that
1971 on some window managers on X11 you also have to pass
1972 Qt::X11BypassWindowManagerHint for this flag to work
1973 correctly.
1974
1975 \value WindowStaysOnBottomHint Informs the window system that the
1976 window should stay on bottom of all other windows. Note
1977 that on X11 this hint will work only in window managers
1978 that support _NET_WM_STATE_BELOW atom. If a window always
1979 on the bottom has a parent, the parent will also be left on
1980 the bottom. This window hint is currently not implemented
1981 for Mac OS X.
1982
1983 \value WindowOkButtonHint Adds an OK button to the window decoration of a dialog.
1984 Only supported for Windows CE.
1985
1986 \value WindowCancelButtonHint Adds a Cancel button to the window decoration of a dialog.
1987 Only supported for Windows CE.
1988
1989 \value WindowType_Mask A mask for extracting the window type
1990 part of the window flags.
1991
1992 Obsolete flags:
1993
1994 \value WMouseNoMask Use Qt::WA_MouseNoMask instead.
1995 \value WDestructiveClose Use Qt::WA_DeleteOnClose instead.
1996 \value WStaticContents Use Qt::WA_StaticContents instead.
1997 \value WGroupLeader No longer needed.
1998 \value WShowModal Use QWidget::windowModality instead.
1999 \value WNoMousePropagation Use Qt::WA_NoMousePropagation instead.
2000 \value WType_TopLevel Use Qt::Window instead.
2001 \value WType_Dialog Use Qt::Dialog instead.
2002 \value WType_Popup Use Qt::Popup instead.
2003 \value WType_Desktop Use Qt::Desktop instead.
2004 \value WType_Mask Use Qt::WindowType_Mask instead.
2005
2006 \value WStyle_Customize No longer needed.
2007 \value WStyle_NormalBorder No longer needed.
2008 \value WStyle_DialogBorder Use Qt::MSWindowsFixedSizeDialogHint instead.
2009 \value WStyle_NoBorder Use Qt::FramelessWindowHint instead.
2010 \value WStyle_Title Use Qt::WindowTitleHint instead.
2011 \value WStyle_SysMenu Use Qt::WindowSystemMenuHint instead.
2012 \value WStyle_Minimize Use Qt::WindowMinimizeButtonHint instead.
2013 \value WStyle_Maximize Use Qt::WindowMaximizeButtonHint instead.
2014 \value WStyle_MinMax Use Qt::WindowMinMaxButtonsHint instead.
2015 \value WStyle_Tool Use Qt::Tool instead.
2016 \value WStyle_StaysOnTop Use Qt::WindowStaysOnTopHint instead.
2017 \value WStyle_ContextHelp Use Qt::WindowContextHelpButtonHint instead.
2018
2019 \value WPaintDesktop No longer needed.
2020 \value WPaintClever No longer needed.
2021
2022 \value WX11BypassWM Use Qt::X11BypassWindowManagerHint instead.
2023 \value WWinOwnDC Use Qt::MSWindowsOwnDC instead.
2024 \value WMacSheet Use Qt::Sheet instead.
2025 \value WMacDrawer Use Qt::Drawer instead.
2026
2027 \value WStyle_Splash Use Qt::SplashScreen instead.
2028
2029 \value WNoAutoErase No longer needed.
2030 \value WRepaintNoErase No longer needed.
2031 \value WNorthWestGravity Use Qt::WA_StaticContents instead.
2032 \value WType_Modal Use Qt::Dialog and QWidget::windowModality instead.
2033 \value WStyle_Dialog Use Qt::Dialog instead.
2034 \value WStyle_NoBorderEx Use Qt::FramelessWindowHint instead.
2035 \value WResizeNoErase No longer needed.
2036 \value WMacNoSheet No longer needed.
2037
2038 \sa QWidget::windowFlags, {Window Flags Example}
2039*/
2040
2041/*!
2042 \enum Qt::DropAction
2043
2044 \value CopyAction Copy the data to the target.
2045 \value MoveAction Move the data from the source to the target.
2046 \value LinkAction Create a link from the source to the target.
2047 \value ActionMask
2048 \value IgnoreAction Ignore the action (do nothing with the data).
2049 \value TargetMoveAction On Windows, this value is used when the ownership of the D&D data
2050 should be taken over by the target application,
2051 i.e., the source application should not delete
2052 the data.
2053
2054 On X11 this value is used to do a move.
2055
2056 TargetMoveAction is not used on the Mac.
2057*/
2058
2059#if defined(Q_OS_WIN) && defined(QT3_SUPPORT)
2060/*!
2061 \enum Qt::WindowsVersion
2062 \compat
2063
2064 \value WV_32s
2065 \value WV_95
2066 \value WV_98
2067 \value WV_Me
2068 \value WV_DOS_based
2069 \value WV_NT
2070 \value WV_2000
2071 \value WV_XP
2072 \value WV_2003
2073 \value WV_NT_based
2074 \value WV_CE
2075 \value WV_CENET
2076 \value WV_CE_based
2077 \value WV_CE_5
2078 \value WV_CE_6
2079*/
2080#endif
2081
2082#if defined(Q_OS_MAC) && defined(QT3_SUPPORT)
2083/*!
2084 \enum Qt::MacintoshVersion
2085 \compat
2086
2087 \value MV_Unknown Use QSysInfo::MV_Unknown instead.
2088 \value MV_9 Use QSysInfo::MV_9 instead.
2089 \value MV_10_DOT_0 Use QSysInfo::MV_10_0 instead.
2090 \value MV_10_DOT_1 Use QSysInfo::MV_10_1 instead.
2091 \value MV_10_DOT_2 Use QSysInfo::MV_10_2 instead.
2092 \value MV_10_DOT_3 Use QSysInfo::MV_10_3 instead.
2093 \value MV_10_DOT_4 Use QSysInfo::MV_10_4 instead.
2094
2095 \value MV_CHEETAH Use QSysInfo::MV_10_0 instead.
2096 \value MV_PUMA Use QSysInfo::MV_10_1 instead.
2097 \value MV_JAGUAR Use QSysInfo::MV_10_2 instead.
2098 \value MV_PANTHER Use QSysInfo::MV_10_3 instead.
2099 \value MV_TIGER Use QSysInfo::MV_10_4 instead.
2100
2101 \sa QSysInfo::MacVersion
2102*/
2103#endif
2104
2105/*! \typedef Qt::ToolBarDock
2106 \compat
2107
2108 Use Qt::Dock instead.
2109*/
2110
2111/*!
2112 \enum Qt::Dock
2113 \compat
2114
2115 Each dock window can be in one of the following positions:
2116
2117 \value DockUnmanaged not managed by a Q3MainWindow.
2118
2119 \value DockTornOff the dock window floats as its own top level
2120 window which always stays on top of the main window.
2121
2122 \value DockTop above the central widget, below the menu bar.
2123
2124 \value DockBottom below the central widget, above the status bar.
2125
2126 \value DockRight to the right of the central widget.
2127
2128 \value DockLeft to the left of the central widget.
2129
2130 \value DockMinimized the dock window is not shown (this is
2131 effectively a 'hidden' dock area); the handles of all minimized
2132 dock windows are drawn in one row below the menu bar.
2133
2134 \omitvalue Bottom
2135 \omitvalue Left
2136 \omitvalue Minimized
2137 \omitvalue Right
2138 \omitvalue Top
2139 \omitvalue TornOff
2140 \omitvalue Unmanaged
2141*/
2142
2143/*!
2144 \enum Qt::AnchorAttribute
2145
2146 An anchor has one or more of the following attributes:
2147
2148 \value AnchorName the name attribute of the anchor. This attribute is
2149 used when scrolling to an anchor in the document.
2150
2151 \value AnchorHref the href attribute of the anchor. This attribute is
2152 used when a link is clicked to determine what content to load.
2153*/
2154
2155/*!
2156 \enum Qt::SortOrder
2157
2158 This enum describes how the items in a widget are sorted.
2159
2160 \value AscendingOrder The items are sorted ascending e.g. starts with
2161 'AAA' ends with 'ZZZ' in Latin-1 locales
2162
2163 \value DescendingOrder The items are sorted descending e.g. starts with
2164 'ZZZ' ends with 'AAA' in Latin-1 locales
2165
2166 \omitvalue Ascending
2167 \omitvalue Descending
2168*/
2169
2170/*!
2171 \enum Qt::ClipOperation
2172
2173 \value NoClip This operation turns clipping off.
2174
2175 \value ReplaceClip Replaces the current clip path/rect/region with
2176 the one supplied in the function call.
2177
2178 \value IntersectClip Intersects the current clip path/rect/region
2179 with the one supplied in the function call.
2180
2181 \value UniteClip Unites the current clip path/rect/region with the
2182 one supplied in the function call.
2183*/
2184
2185/*!
2186 \enum Qt::ItemSelectionMode
2187
2188 This enum is used in QGraphicsItem, QGraphicsScene and QGraphicsView to
2189 specify how items are selected, or how to determine if a shapes and items
2190 collide.
2191
2192 \value ContainsItemShape The output list contains only items whose
2193 \l{QGraphicsItem::shape()}{shape} is fully contained inside the
2194 selection area. Items that intersect with the area's outline are
2195 not included.
2196
2197 \value IntersectsItemShape The output list contains both items whose
2198 \l{QGraphicsItem::shape()}{shape} is fully contained inside the
2199 selection area, and items that intersect with the area's
2200 outline. This is a common mode for rubber band selection.
2201
2202 \value ContainsItemBoundingRect The output list contains only items whose
2203 \l{QGraphicsItem::boundingRect()}{bounding rectangle} is fully
2204 contained inside the selection area. Items that intersect with the
2205 area's outline are not included.
2206
2207 \value IntersectsItemBoundingRect The output list contains both items
2208 whose \l{QGraphicsItem::boundingRect()}{bounding rectangle} is
2209 fully contained inside the selection area, and items that intersect
2210 with the area's outline. This method is commonly used for
2211 determining areas that need redrawing.
2212
2213 \sa QGraphicsScene::items(), QGraphicsScene::collidingItems(),
2214 QGraphicsView::items(), QGraphicsItem::collidesWithItem(),
2215 QGraphicsItem::collidesWithPath()
2216*/
2217
2218/*!
2219 \enum Qt::FillRule
2220
2221 Specifies which method should be used to fill the paths and polygons.
2222
2223 \value OddEvenFill Specifies that the region is filled using the
2224 odd even fill rule. With this rule, we determine whether a point
2225 is inside the shape by using the following method.
2226 Draw a horizontal line from the point to a location outside the shape,
2227 and count the number of intersections. If the number of intersections
2228 is an odd number, the point is inside the shape. This mode is the
2229 default.
2230
2231 \value WindingFill Specifies that the region is filled using the
2232 non zero winding rule. With this rule, we determine whether a
2233 point is inside the shape by using the following method.
2234 Draw a horizontal line from the point to a location outside the shape.
2235 Determine whether the direction of the line at each intersection point
2236 is up or down. The winding number is determined by summing the
2237 direction of each intersection. If the number is non zero, the point
2238 is inside the shape. This fill mode can also in most cases be considered
2239 as the intersection of closed shapes.
2240*/
2241
2242/*!
2243 \enum Qt::PaintUnit
2244
2245 \compat
2246
2247 \value PixelUnit
2248 \value LoMetricUnit Obsolete
2249 \value HiMetricUnit Obsolete
2250 \value LoEnglishUnit Obsolete
2251 \value HiEnglishUnit Obsolete
2252 \value TwipsUnit Obsolete
2253*/
2254
2255/*!
2256 \enum Qt::TextFormat
2257
2258 This enum is used in widgets that can display both plain text and
2259 rich text, e.g. QLabel. It is used for deciding whether a text
2260 string should be interpreted as one or the other. This is normally
2261 done by passing one of the enum values to a setTextFormat()
2262 function.
2263
2264 \value PlainText The text string is interpreted as a plain text
2265 string.
2266
2267 \value RichText The text string is interpreted as a rich text
2268 string.
2269
2270 \value AutoText The text string is interpreted as for
2271 Qt::RichText if Qt::mightBeRichText() returns true, otherwise
2272 as Qt::PlainText.
2273
2274 \value LogText A special, limited text format which is only used
2275 by Q3TextEdit in an optimized mode.
2276*/
2277
2278/*!
2279 \enum Qt::CursorShape
2280
2281 This enum type defines the various cursors that can be used.
2282
2283 The standard arrow cursor is the default for widgets in a normal state.
2284
2285 \value ArrowCursor \inlineimage cursor-arrow.png
2286 The standard arrow cursor.
2287 \value UpArrowCursor \inlineimage cursor-uparrow.png
2288 An arrow pointing upwards toward the top of the screen.
2289 \value CrossCursor \inlineimage cursor-cross.png
2290 A crosshair cursor, typically used to help the
2291 user accurately select a point on the screen.
2292 \value WaitCursor \inlineimage cursor-wait.png
2293 An hourglass or watch cursor, usually shown during
2294 operations that prevent the user from interacting with
2295 the application.
2296 \value IBeamCursor \inlineimage cursor-ibeam.png
2297 A caret or ibeam cursor, indicating that a widget can
2298 accept and display text input.
2299 \value SizeVerCursor \inlineimage cursor-sizev.png
2300 A cursor used for elements that are used to vertically
2301 resize top-level windows.
2302 \value SizeHorCursor \inlineimage cursor-sizeh.png
2303 A cursor used for elements that are used to horizontally
2304 resize top-level windows.
2305 \value SizeBDiagCursor \inlineimage cursor-sizeb.png
2306 A cursor used for elements that are used to diagonally
2307 resize top-level windows at their top-right and
2308 bottom-left corners.
2309 \value SizeFDiagCursor \inlineimage cursor-sizef.png
2310 A cursor used for elements that are used to diagonally
2311 resize top-level windows at their top-left and
2312 bottom-right corners.
2313 \value SizeAllCursor \inlineimage cursor-sizeall.png
2314 A cursor used for elements that are used to resize
2315 top-level windows in any direction.
2316 \value BlankCursor A blank/invisible cursor, typically used when the cursor
2317 shape needs to be hidden.
2318 \value SplitVCursor \inlineimage cursor-vsplit.png
2319 A cursor used for vertical splitters, indicating that
2320 a handle can be dragged horizontally to adjust the use
2321 of available space.
2322 \value SplitHCursor \inlineimage cursor-hsplit.png
2323 A cursor used for horizontal splitters, indicating that
2324 a handle can be dragged vertically to adjust the use
2325 of available space.
2326 \value PointingHandCursor \inlineimage cursor-hand.png
2327 A pointing hand cursor that is typically used for
2328 clickable elements such as hyperlinks.
2329 \value ForbiddenCursor \inlineimage cursor-forbidden.png
2330 A slashed circle cursor, typically used during drag
2331 and drop operations to indicate that dragged content
2332 cannot be dropped on particular widgets or inside
2333 certain regions.
2334 \value OpenHandCursor \inlineimage cursor-openhand.png
2335 A cursor representing an open hand, typically used to
2336 indicate that the area under the cursor is the visible
2337 part of a canvas that the user can click and drag in
2338 order to scroll around.
2339 \value ClosedHandCursor \inlineimage cursor-closedhand.png
2340 A cursor representing a closed hand, typically used to
2341 indicate that a dragging operation is in progress that
2342 involves scrolling.
2343 \value WhatsThisCursor \inlineimage cursor-whatsthis.png
2344 An arrow with a question mark, typically used to indicate
2345 the presence of What's This? help for a widget.
2346 \value BusyCursor \inlineimage cursor-wait.png
2347 An hourglass or watch cursor, usually shown during
2348 operations that allow the user to interact with
2349 the application while they are performed in the
2350 background.
2351 \value BitmapCursor
2352 \omitvalue LastCursor
2353 \omitvalue CustomCursor
2354
2355 \omitvalue arrowCursor
2356 \omitvalue upArrowCursor
2357 \omitvalue crossCursor
2358 \omitvalue waitCursor
2359 \omitvalue ibeamCursor
2360 \omitvalue sizeVerCursor
2361 \omitvalue sizeHorCursor
2362 \omitvalue sizeBDiagCursor
2363 \omitvalue sizeFDiagCursor
2364 \omitvalue sizeAllCursor
2365 \omitvalue blankCursor
2366 \omitvalue splitVCursor
2367 \omitvalue splitHCursor
2368 \omitvalue pointingHandCursor
2369 \omitvalue forbiddenCursor
2370 \omitvalue whatsThisCursor
2371*/
2372
2373/*!
2374 \typedef Qt::TextFlags
2375 \compat
2376
2377 Use Qt::TextFlag instead.
2378*/
2379
2380/*!
2381 \enum Qt::LayoutDirection
2382
2383 Specifies the direction of Qt's layouts:
2384
2385 \value LeftToRight Left-to-right layout.
2386 \value RightToLeft Right-to-left layout.
2387
2388 Right-to-left layouts are necessary for certain languages,
2389 notably Arabic and Hebrew.
2390
2391 \sa QApplication::setLayoutDirection(), QWidget::setLayoutDirection()
2392*/
2393
2394/*!
2395 \enum Qt::InputMethodQuery
2396
2397 \value ImMicroFocus The rectangle covering the area of the input cursor in widget coordinates.
2398 \value ImFont The currently used font for text input.
2399 \value ImCursorPosition The logical position of the cursor within the text surrounding the input area (see ImSurroundingText).
2400 If any text is selected, the position returned will be at the logical end of the
2401 selection, even if the real cursor is located at the logical start.
2402 \value ImSurroundingText The plain text around the input area, for example the current paragraph.
2403 \value ImCurrentSelection The currently selected text.
2404*/
2405
2406/*!
2407 \enum Qt::ItemDataRole
2408
2409 Each item in the model has a set of data elements associated with
2410 it, each with its own role. The roles are used by the view to indicate
2411 to the model which type of data it needs.
2412
2413 The general purpose roles are:
2414
2415 \value DisplayRole The key data to be rendered in the form of text.
2416 \value DecorationRole The data to be rendered as a decoration in the form
2417 of an icon.
2418 \value EditRole The data in a form suitable for editing in an
2419 editor.
2420 \value ToolTipRole The data displayed in the item's tooltip.
2421 \value StatusTipRole The data displayed in the status bar.
2422 \value WhatsThisRole The data displayed for the item in "What's This?"
2423 mode.
2424 \value SizeHintRole The size hint for the item that will be supplied
2425 to views.
2426
2427 Roles describing appearance and meta data:
2428
2429 \value FontRole The font used for items rendered with the default
2430 delegate.
2431 \value TextAlignmentRole The alignment of the text for items rendered with the
2432 default delegate.
2433 \value BackgroundRole The background brush used for items rendered with
2434 the default delegate.
2435 \value BackgroundColorRole This role is obsolete. Use BackgroundRole instead.
2436 \value ForegroundRole The foreground brush (text color, typically)
2437 used for items rendered with the default delegate.
2438 \value TextColorRole This role is obsolete. Use ForegroundRole instead.
2439 \value CheckStateRole This role is used to obtain the checked state of
2440 an item (see \l Qt::CheckState).
2441
2442 Accessibility roles:
2443
2444 \value AccessibleTextRole The text to be used by accessibility
2445 extensions and plugins, such as screen
2446 readers.
2447 \value AccessibleDescriptionRole A description of the item for accessibility
2448 purposes.
2449
2450 User roles:
2451
2452 \value UserRole The first role that can be used for application-specific purposes.
2453
2454 \omitvalue DisplayPropertyRole
2455 \omitvalue DecorationPropertyRole
2456 \omitvalue ToolTipPropertyRole
2457 \omitvalue StatusTipPropertyRole
2458 \omitvalue WhatsThisPropertyRole
2459*/
2460
2461/*!
2462 \enum Qt::ItemFlag
2463
2464 This enum describes the properties of an item:
2465
2466 \value NoItemFlags It does not have any properties set.
2467 \value ItemIsSelectable It can be selected.
2468 \value ItemIsEditable It can be edited.
2469 \value ItemIsDragEnabled It can be dragged.
2470 \value ItemIsDropEnabled It can be used as a drop target.
2471 \value ItemIsUserCheckable It can be checked or unchecked by the user.
2472 \value ItemIsEnabled The user can interact with the item.
2473 \value ItemIsTristate The item is checkable with three separate states.
2474
2475 Note that checkable items need to be given both a suitable set of flags
2476 and an initial state, indicating whether the item is checked or not.
2477 This is handled automatically for model/view components, but needs
2478 to be explicitly set for instances of QListWidgetItem, QTableWidgetItem,
2479 and QTreeWidgetItem.
2480
2481 \sa QAbstractItemModel
2482*/
2483
2484/*!
2485 \enum Qt::MatchFlag
2486
2487 This enum describes the type of matches that can be used when searching
2488 for items in a model.
2489
2490 \value MatchExactly Performs QVariant-based matching.
2491 \value MatchFixedString Performs string-based matching.
2492 String-based comparisons are case-insensitive unless the
2493 \c MatchCaseSensitive flag is also specified.
2494 \value MatchContains The search term is contained in the item.
2495 \value MatchStartsWith The search term matches the start of the item.
2496 \value MatchEndsWith The search term matches the end of the item.
2497 \value MatchCaseSensitive The search is case sensitive.
2498 \value MatchRegExp Performs string-based matching using a regular
2499 expression as the search term.
2500 \value MatchWildcard Performs string-based matching using a string with
2501 wildcards as the search term.
2502 \value MatchWrap Perform a search that wraps around, so that when
2503 the search reaches the last item in the model, it begins again at
2504 the first item and continues until all items have been examined.
2505 \value MatchRecursive Searches the entire hierarchy.
2506
2507 \sa QString::compare(), QRegExp
2508*/
2509
2510/*!
2511 \enum Qt::TextElideMode
2512
2513 This enum specifies where the ellipsis should appear when
2514 displaying texts that don't fit:
2515
2516 \value ElideLeft The ellipsis should appear at the beginning of the text.
2517 \value ElideRight The ellipsis should appear at the end of the text.
2518 \value ElideMiddle The ellipsis should appear in the middle of the text.
2519 \value ElideNone Ellipsis should NOT appear in the text.
2520
2521 Qt::ElideMiddle is normally the most appropriate choice for URLs (e.g.,
2522 "\l{http://www.qtsoftware.com/careers/movingto/beijing/}{http://www.qtsof...ovingto/beijing/}"),
2523 whereas Qt::ElideRight is appropriate
2524 for other strings (e.g.,
2525 "\l{http://doc.trolltech.com/qq/qq09-mac-deployment.html}{Deploying Applications on Ma...}").
2526
2527 \sa QAbstractItemView::textElideMode, QFontMetrics::elidedText(), AlignmentFlag QTabBar::elideMode
2528*/
2529
2530/*!
2531 \enum Qt::WindowModality
2532
2533 \keyword modal
2534
2535 This enum specifies the behavior of a modal window. A modal window
2536 is one that blocks input to other windows. Note that windows that
2537 are children of a modal window are not blocked.
2538
2539 The values are:
2540 \value NonModal The window is not modal and does not block input to other windows.
2541 \value WindowModal The window is modal to a single window hierarchy and blocks input to its parent window, all grandparent windows, and all siblings of its parent and grandparent windows.
2542 \value ApplicationModal The window is modal to the application and blocks input to all windows.
2543
2544 \sa QWidget::windowModality, QDialog
2545*/
2546
2547/*!
2548 \enum Qt::TextInteractionFlag
2549
2550 This enum specifies how a text displaying widget reacts to user input.
2551
2552 \value NoTextInteraction No interaction with the text is possible.
2553 \value TextSelectableByMouse Text can be selected with the mouse and copied to the clipboard using
2554 a context menu or standard keyboard shortcuts.
2555 \value TextSelectableByKeyboard Text can be selected with the cursor keys on the keyboard. A text cursor is shown.
2556 \value LinksAccessibleByMouse Links can be highlighted and activated with the mouse.
2557 \value LinksAccessibleByKeyboard Links can be focused using tab and activated with enter.
2558 \value TextEditable The text is fully editable.
2559
2560 \value TextEditorInteraction The default for a text editor.
2561 \value TextBrowserInteraction The default for QTextBrowser.
2562*/
2563
2564/*!
2565 \enum Qt::MaskMode
2566
2567 This enum specifies the behavior of the
2568 QPixmap::createMaskFromColor() and QImage::createMaskFromColor()
2569 functions.
2570
2571 \value MaskInColor Creates a mask where all pixels matching the given color are opaque.
2572 \value MaskOutColor Creates a mask where all pixels matching the given color are transparent.
2573*/
2574
2575/*!
2576 \enum Qt::DockWidgetAreaSizes
2577 \internal
2578*/
2579
2580/*!
2581 \enum Qt::ToolBarAreaSizes
2582 \internal
2583*/
2584
2585/*!
2586 \enum Qt::EventPriority
2587
2588 This enum can be used to specify event priorities.
2589
2590 \value HighEventPriority Events with this priority are sent before
2591 events with NormalEventPriority or LowEventPriority.
2592
2593 \value NormalEventPriority Events with this priority are sent
2594 after events with HighEventPriority, but before events with
2595 LowEventPriority.
2596
2597 \value LowEventPriority Events with this priority are sent after
2598 events with HighEventPriority or NormalEventPriority.
2599
2600 Note that these values are provided purely for convenience, since
2601 event priorities can be any value between \c INT_MAX and \c
2602 INT_MIN, inclusive. For example, you can define custom priorities
2603 as being relative to each other:
2604
2605 \snippet doc/src/snippets/code/doc_src_qnamespace.qdoc 1
2606
2607 \sa QCoreApplication::postEvent()
2608*/
2609/*!
2610 \enum Qt::SizeHint
2611 \since 4.4
2612
2613 This enum is used by QGraphicsLayoutItem::sizeHint()
2614
2615 \value MinimumSize is used to specify the minimum size of a graphics layout item.
2616 \value PreferredSize is used to specify the preferred size of a graphics layout item.
2617 \value MaximumSize is used to specify the maximum size of a graphics layout item.
2618 \value MinimumDescent is used to specify the minimum descent of a text string in a graphics layout item.
2619 \omitvalue NSizeHints
2620
2621 \sa QGraphicsLayoutItem::sizeHint()
2622*/
2623
2624/*!
2625 \enum Qt::SizeMode
2626 \since 4.4
2627
2628 This enum is used by QPainter::drawRoundedRect() and QPainterPath::addRoundedRect()
2629 functions to specify the radii of rectangle corners with respect to the dimensions
2630 of the bounding rectangles specified.
2631
2632 \value AbsoluteSize Specifies the size using absolute measurements.
2633 \value RelativeSize Specifies the size relative to the bounding rectangle,
2634 typically using percentage measurements.
2635*/
2636
2637/*!
2638 \enum Qt::WindowFrameSection
2639 \since 4.4
2640
2641 This enum is used to describe parts of a window frame. It is returned by
2642 QGraphicsWidget::windowFrameSectionAt() to describe what section of the window
2643 frame is under the mouse.
2644
2645 \value NoSection
2646 \value LeftSection
2647 \value TopLeftSection
2648 \value TopSection
2649 \value TopRightSection
2650 \value RightSection
2651 \value BottomRightSection
2652 \value BottomSection
2653 \value BottomLeftSection
2654 \value TitleBarArea
2655
2656 \sa QGraphicsWidget::windowFrameEvent()
2657 \sa QGraphicsWidget::paintWindowFrame()
2658 \sa QGraphicsWidget::windowFrameSectionAt()
2659
2660*/
Note: See TracBrowser for help on using the repository browser.