Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qnamespace.qdoc
Go to the documentation of this file.
1// Copyright (C) 2022 The Qt Company Ltd.
2// Copyright (C) 2020 Klaralvdalens Datakonsult AB, a KDAB Group company, info@kdab.com, author Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
3// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only
4
5/*!
6 \namespace Qt
7 \inmodule QtCore
8 \keyword Qt Namespace
9
10 \brief The Qt namespace contains miscellaneous identifiers
11 used throughout the Qt library.
12*/
13
14/*!
15 \enum Qt::Orientation
16
17 This type is used to signify an object's orientation.
18
19 \value Horizontal
20 \value Vertical
21
22 Orientation is used with QScrollBar for example.
23*/
24
25/*!
26 \enum Qt::AlignmentFlag
27
28 This enum type is used to describe alignment. It contains
29 horizontal and vertical flags that can be combined to produce
30 the required effect.
31
32 The \l{TextElideMode} enum can also be used in many situations
33 to fine-tune the appearance of aligned text.
34
35 The horizontal flags are:
36
37 \value AlignLeft Aligns with the left edge.
38 \value AlignRight Aligns with the right edge.
39 \value AlignHCenter Centers horizontally in the available space.
40 \value AlignJustify Justifies the text in the available space.
41
42 The vertical flags are:
43
44 \value AlignTop Aligns with the top.
45 \value AlignBottom Aligns with the bottom.
46 \value AlignVCenter Centers vertically in the available space.
47 \value AlignBaseline Aligns with the baseline.
48
49 You can use only one of the horizontal flags at a time. There is
50 one two-dimensional flag:
51
52 \value AlignCenter Centers in both dimensions.
53
54 You can use at most one horizontal and one vertical flag at a
55 time. Qt::AlignCenter counts as both horizontal and vertical.
56
57 Three enum values are useful in applications that can be run in
58 right-to-left mode:
59
60 \value AlignAbsolute If the widget's layout direction is
61 Qt::RightToLeft (instead of Qt::LeftToRight, the default),
62 Qt::AlignLeft refers to the \e right edge and Qt::AlignRight
63 to the \e left edge. This is normally the desired behavior.
64 If you want Qt::AlignLeft to always mean "left" and
65 Qt::AlignRight to always mean "right", combine the flag with
66 Qt::AlignAbsolute.
67 \value AlignLeading Synonym for Qt::AlignLeft.
68 \value AlignTrailing Synonym for Qt::AlignRight.
69
70 Masks:
71
72 \value AlignHorizontal_Mask
73 \value AlignVertical_Mask
74
75 Conflicting combinations of flags have undefined meanings.
76*/
77
78/*!
79 \enum Qt::ApplicationAttribute
80
81 This enum describes attributes that change the behavior of
82 application-wide features. These are enabled and disabled using
83 QCoreApplication::setAttribute(), and can be tested for with
84 QCoreApplication::testAttribute().
85
86
87 \value [since 6.7] AA_QtQuickUseDefaultSizePolicy Qt Quick Layouts use the built-in size
88 policy of \l Item. For example, when this is set, \l Button fills the available
89 width, but has a fixed height. When this is not set, it will use the default
90 sizing behavior of the layout it's in, which is to use its implicit size as the
91 preferred size. This is explained in detail in \l {Specifying preferred size} and
92 \l {Size constraints}. When this is set, the default size policy of the item
93 with the layout can be overridden by explicitly setting
94 \l{Layout::fillWidth}{Layout.fillWidth} or
95 \l{Layout::fillHeight}{Layout.fillHeight}.
96
97 \value AA_DontShowIconsInMenus Actions with the Icon property won't be
98 shown in any menus unless specifically set by the
99 QAction::iconVisibleInMenu property. The default value of this
100 attribute depends on the platform. To override the default
101 behavior, set the attribute after QGuiApplication has been
102 instantiated.
103 Menus that are currently open or menus already created in the native
104 \macos menubar \e{may not} pick up a change in this attribute. Changes
105 in the QAction::iconVisibleInMenu property will always be picked up.
106
107 \value AA_DontShowShortcutsInContextMenus Actions with the Shortcut property
108 won't be shown in any shortcut menus unless specifically set by the
109 QAction::shortcutVisibleInContextMenu property. This value was added
110 in Qt 5.10, and is by default based on the value reported by
111 QStyleHints::showShortcutsInContextMenus(). To override the default
112 behavior, set the style hint before QCoreApplication has been
113 instantiated, or set this attribute after QCoreApplication has
114 been instantiated.
115
116 \value AA_NativeWindows Ensures that widgets have native windows.
117
118 \value AA_DontCreateNativeWidgetSiblings Ensures that siblings of native
119 widgets stay non-native unless specifically set by the
120 Qt::WA_NativeWindow attribute.
121
122 \value AA_PluginApplication Indicates that Qt is used to author a plugin. Depending
123 on the operating system, it suppresses specific initializations that do not
124 necessarily make sense in the plugin case.
125 For example on \macos, this includes avoiding loading our nib for the main
126 menu and not taking possession of the native menu bar. Setting this
127 attribute to true will also set the AA_DontUseNativeMenuBar attribute
128 to true. It also disables native event filters.
129 This attribute must be set before QGuiApplication constructed.
130 This value was added in Qt 5.7.
131
132 \value AA_DontUseNativeMenuBar All menubars created while this attribute is
133 set to true won't be used as a native menubar (e.g, the menubar at
134 the top of the main screen on \macos).
135
136 \value AA_MacDontSwapCtrlAndMeta Keyboard shortcuts on Apple platforms are typically
137 based on the Command (or Cmd) keyboard modifier, represented by
138 the ⌘ symbol. For example, the 'Copy' action is Command+C (⌘+C).
139 To ease cross platform development Qt will by default remap Command
140 to the Qt::ControlModifier, to align with other platforms. This
141 allows creating keyboard shortcuts such as "Ctrl+J", which on
142 \macos will then map to Command+J, as expected by \macos users. The
143 actual Control (or Ctrl) modifier on Apple platforms, represented by ⌃,
144 is mapped to Qt::MetaModifier.
145
146 When this attribute is true Qt will not do the remapping, and pressing
147 the Command modifier will result in Qt::MetaModifier, while pressing
148 the Control modifier will result in Qt::ControlModifier.
149
150 Note that the \l QKeySequence::StandardKey sequences will always be
151 based on the same modifier (i.e., QKeySequence::Copy will be
152 Command+C regardless of the value set), but what is output for
153 QKeySequence::toString() will be different.
154
155 \value AA_Use96Dpi Assume the screen has a resolution of 96 DPI rather
156 than using the OS-provided resolution. This will cause font rendering
157 to be consistent in pixels-per-point across devices rather than
158 defining 1 point as 1/72 inch.
159
160 \value AA_SynthesizeTouchForUnhandledMouseEvents All mouse events
161 that are not accepted by the application will be translated
162 to touch events instead.
163
164 \value AA_SynthesizeMouseForUnhandledTouchEvents All touch events
165 that are not accepted by the application will be translated
166 to left button mouse events instead. This attribute is enabled
167 by default.
168
169 \value AA_ForceRasterWidgets Make top-level widgets use pure raster surfaces,
170 and do not support non-native GL-based child widgets.
171
172 \value AA_UseDesktopOpenGL Forces the usage of desktop OpenGL (for example,
173 \e opengl32.dll or \e libGL.so) on platforms that use dynamic loading
174 of the OpenGL implementation. This attribute must be set before
175 QGuiApplication is constructed.
176 This value was added in Qt 5.3.
177
178 \value AA_UseOpenGLES Forces the usage of OpenGL ES 2.0 or higher on
179 platforms that use dynamic loading of the OpenGL implementation.
180 This attribute must be set before QGuiApplication is constructed.
181 This value was added in Qt 5.3.
182
183 \value AA_UseSoftwareOpenGL Forces the usage of a software based OpenGL
184 implementation on platforms that use dynamic loading of the OpenGL
185 implementation. This will typically be a patched build of
186 \l{http://www.mesa3d.org/llvmpipe.html}{Mesa llvmpipe}, providing
187 OpenGL 2.1. The value may have no effect if no such OpenGL
188 implementation is available. The default name of this library is
189 \c opengl32sw.dll and can be overridden by setting the environment
190 variable \e QT_OPENGL_DLL. See the platform-specific pages, for
191 instance \l{Qt for Windows}, for more information. This attribute
192 must be set before QGuiApplication is constructed.
193 This value was added in Qt 5.4.
194
195 \value AA_ShareOpenGLContexts Enables resource sharing between the OpenGL
196 contexts used by classes like QOpenGLWidget and QQuickWidget. This
197 allows sharing OpenGL resources, like textures, between QOpenGLWidget
198 instances that belong to different top-level windows.
199 This value was added in Qt 5.4.
200
201 \value AA_SetPalette Indicates whether a palette was explicitly set on the
202 QGuiApplication. This value was added in Qt 5.5.
203
204 \value AA_UseStyleSheetPropagationInWidgetStyles By default, Qt Style Sheets
205 disable regular QWidget palette and font propagation. When this flag
206 is enabled, font and palette changes done from a style sheet will propagate
207 a single time, when the style sheet is set.
208 See \l{The Style Sheet Syntax#Inheritance}{The Style Sheet Syntax - Inheritance}
209 for more details.
210 This value was added in Qt 5.7.
211
212 \value AA_DontUseNativeDialogs All dialogs created while this attribute is
213 set to true won't use the native dialogs provided by the platform.
214 This value was added in Qt 5.7.
215
216 \value AA_SynthesizeMouseForUnhandledTabletEvents All tablet events
217 that are not accepted by the application will be translated
218 to mouse events instead. This attribute is enabled
219 by default.
220 This value was added in Qt 5.7.
221
222 \value AA_CompressHighFrequencyEvents Enables compression of certain frequent events.
223 On the X11 windowing system, the default value is true, which means that
224 QEvent::MouseMove, QEvent::TouchUpdate, and changes in window size and
225 position will be combined whenever they occur more frequently than the
226 application handles them, so that they don't accumulate and overwhelm the
227 application later.
228 On Windows 8 and above the default value is also true, but it only applies
229 to touch events. Mouse and window events remain unaffected by this flag.
230 On Wayland the default value is also true, but it only applies to mouse events.
231 On other platforms, the default is false.
232 (In the future, the compression feature may be implemented across platforms.)
233 You can test the attribute to see whether compression is enabled.
234 If your application needs to handle all events with no compression,
235 you can unset this attribute. Notice that input events from tablet devices
236 will not be compressed. See AA_CompressTabletEvents if you want these to be
237 compressed as well.
238 This value was added in Qt 5.7.
239
240 \value AA_CompressTabletEvents Enables compression of input events from tablet devices.
241 Notice that AA_CompressHighFrequencyEvents must be true for events compression
242 to be enabled, and that this flag extends the former to tablet events.
243 Currently supported on the X11 windowing system, Windows 8 and above.
244 The default value is false.
245 This value was added in Qt 5.10.
246
247 \value AA_DontCheckOpenGLContextThreadAffinity When making a context
248 current using QOpenGLContext, do not check that the
249 \l{QObject#Thread Affinity}{QObject thread affinity}
250 of the QOpenGLContext object is the same thread calling
251 \l{QOpenGLContext::makeCurrent}{makeCurrent()}.
252 This value was added in Qt 5.8.
253
254 \value AA_DisableShaderDiskCache Disables caching of shader program binaries
255 on disk. By default Qt Quick, QPainter's OpenGL backend, and any
256 application using QOpenGLShaderProgram with one of its
257 \e addCacheableShaderFromSource overloads will employ a disk-based
258 program binary cache in either the shared or per-process cache storage
259 location, on systems that support \e glProgramBinary(). In the unlikely
260 event of this being problematic, set this attribute to disable all
261 disk-based caching of shaders.
262
263 \value AA_DisableSessionManager Disables the QSessionManager.
264 By default Qt will connect to a running session manager for a GUI
265 application on supported platforms, use of a session manager may be
266 redundant for system services.
267 This attribute must be set before QGuiApplication is constructed.
268 This value was added in 5.14
269
270 \value AA_DisableNativeVirtualKeyboard When this attribute is set, the native
271 on-screen virtual keyboard will not be shown automatically when a
272 text input widget gains focus on a system without a physical keyboard.
273 Currently supported on the Windows platform only.
274 This value was added in 5.15
275
276 \value AA_DontUseNativeMenuWindows Menu popup windows (e.g. context menus,
277 combo box menus, and non-native menubar menus) created while this
278 attribute is set to true will not be represented as native top
279 level windows, unless required by the implementation.
280 This value was added in Qt 6.8.
281
282 \omitvalue AA_AttributeCount
283 \omitvalue AA_EnableHighDpiScaling
284 \omitvalue AA_UseHighDpiPixmaps
285 \omitvalue AA_DisableHighDpiScaling
286*/
287
288/*!
289 \enum Qt::MouseButton
290
291 This enum type describes the different mouse buttons.
292
293 \value NoButton The button state does not refer to any
294 button (see QMouseEvent::button()).
295
296 \value AllButtons This value corresponds to a mask of all
297 possible mouse buttons. Use to set the 'acceptedButtons'
298 property of a MouseArea to accept ALL mouse buttons.
299
300 \value LeftButton The left button is pressed, or an event refers
301 to the left button. (The left button may be the right button on
302 left-handed mice.)
303 \value RightButton The right button.
304 \value MiddleButton The middle button.
305
306 \value BackButton The 'Back' button. (Typically present on
307 the 'thumb' side of a mouse with extra buttons. This is NOT
308 the tilt wheel.)
309 \value XButton1 The 'Back' Button.
310 \value ExtraButton1 The 'Back' Button.
311
312 \value ForwardButton The 'Forward' Button. (Typically present
313 beside the 'Back' button, and also pressed by the thumb.)
314 \value XButton2 The 'Forward Button.
315 \value ExtraButton2 The 'Forward' Button.
316
317 \value TaskButton The 'Task' Button.
318 \value ExtraButton3 The 'Task' Button.
319
320 \value ExtraButton4 The 7th non-wheel Mouse Button.
321 \value ExtraButton5 The 8th non-wheel Mouse Button.
322 \value ExtraButton6 The 9th non-wheel Mouse Button.
323 \value ExtraButton7 The 10th non-wheel Mouse Button.
324 \value ExtraButton8 The 11th non-wheel Mouse Button.
325 \value ExtraButton9 The 12th non-wheel Mouse Button.
326 \value ExtraButton10 The 13th non-wheel Mouse Button.
327 \value ExtraButton11 The 14th non-wheel Mouse Button.
328 \value ExtraButton12 The 15th non-wheel Mouse Button.
329 \value ExtraButton13 The 16th non-wheel Mouse Button.
330 \value ExtraButton14 The 17th non-wheel Mouse Button.
331 \value ExtraButton15 The 18th non-wheel Mouse Button.
332 \value ExtraButton16 The 19th non-wheel Mouse Button.
333 \value ExtraButton17 The 20th non-wheel Mouse Button.
334 \value ExtraButton18 The 21st non-wheel Mouse Button.
335 \value ExtraButton19 The 22nd non-wheel Mouse Button.
336 \value ExtraButton20 The 23rd non-wheel Mouse Button.
337 \value ExtraButton21 The 24th non-wheel Mouse Button.
338 \value ExtraButton22 The 25th non-wheel Mouse Button.
339 \value ExtraButton23 The 26th non-wheel Mouse Button.
340 \value ExtraButton24 The 27th non-wheel Mouse Button.
341
342 \omitvalue MaxMouseButton
343 \omitvalue MouseButtonMask
344
345 \note Some models of multi-button mice are pre-configured with
346 high-numbered Buttons emulating keyboard sequences, for use in
347 specific games. In order for these Buttons to be seen as
348 actual 'Mouse Buttons', the device must be re-configured (using
349 the vendor's configuration tool).
350
351 \sa KeyboardModifier, Modifier
352*/
353
354/*!
355 \enum Qt::KeyboardModifier
356
357 This enum describes the modifier keys.
358
359 \value NoModifier No modifier key is pressed.
360 \value ShiftModifier A Shift key on the keyboard is pressed.
361 \value ControlModifier A Ctrl key on the keyboard is pressed.
362 \value AltModifier An Alt key on the keyboard is pressed.
363 \value MetaModifier A Meta key on the keyboard is pressed.
364 \value KeypadModifier A keypad button is pressed.
365 \value GroupSwitchModifier X11 only (unless activated on Windows by a command line argument).
366 A Mode_switch key on the keyboard is pressed.
367
368 \omitvalue KeyboardModifierMask
369
370 \note On \macos, the \c ControlModifier value corresponds to
371 the Command keys on the keyboard, and the \c MetaModifier value
372 corresponds to the Control keys. The \c KeypadModifier value will also be set
373 when an arrow key is pressed as the arrow keys are considered part of the
374 keypad.
375
376 \note On Windows Keyboards, Qt::MetaModifier and Qt::Key_Meta are mapped
377 to the Windows key.
378
379 \sa MouseButton, Modifier
380*/
381
382/*!
383 \enum Qt::Modifier
384
385 This enum provides shorter names for the keyboard modifier keys
386 supported by Qt.
387
388 \note On \macos, the \c CTRL value corresponds to
389 the Command keys on the keyboard, and the \c META value
390 corresponds to the Control keys.
391
392 \value SHIFT The Shift keys provided on all standard keyboards.
393 \value META The Meta keys.
394 \value CTRL The Ctrl keys.
395 \value ALT The normal Alt keys, but not keys like AltGr.
396 \omitvalue MODIFIER_MASK
397
398 \sa KeyboardModifier, MouseButton
399*/
400
401/*!
402 \enum Qt::GlobalColor
403
404 Qt's predefined QColor objects:
405
406 \value white \span {id="color-white"} {White (#ffffff) }
407 \value black \span {id="color-black"} {Black (#000000) }
408 \value red \span {id="color-red"} {Red (#ff0000) }
409 \value darkRed \span {id="color-darkRed"} {Dark red (#800000) }
410 \value green \span {id="color-green"} {Green (#00ff00) }
411 \value darkGreen \span {id="color-darkGreen"} {Dark green (#008000) }
412 \value blue \span {id="color-blue"} {Blue (#0000ff) }
413 \value darkBlue \span {id="color-darkBlue"} {Dark blue (#000080) }
414 \value cyan \span {id="color-cyan"} {Cyan (#00ffff) }
415 \value darkCyan \span {id="color-darkCyan"} {Dark cyan (#008080) }
416 \value magenta \span {id="color-magenta"} {Magenta (#ff00ff) }
417 \value darkMagenta \span {id="color-darkMagenta"} {Dark magenta (#800080) }
418 \value yellow \span {id="color-yellow"} {Yellow (#ffff00) }
419 \value darkYellow \span {id="color-darkYellow"} {Dark yellow (#808000) }
420 \value gray \span {id="color-gray"} {Gray (#a0a0a4) }
421 \value darkGray \span {id="color-darkGray"} {Dark gray (#808080) }
422 \value lightGray \span {id="color-lightGray"} {Light gray (#c0c0c0) }
423 \value transparent a transparent black value (i.e., QColor(0, 0, 0, 0))
424 \value color0 0 pixel value (for bitmaps)
425 \value color1 1 pixel value (for bitmaps)
426
427 \sa QColor
428
429*/
430
431/*!
432 \enum Qt::PenStyle
433
434 This enum type defines the pen styles that can be drawn using
435 QPainter. The styles are:
436
437 \table
438 \row
439 \li \inlineimage qpen-solid.png {Solid line}
440 \li \inlineimage qpen-dash.png {Dashed line}
441 \li \inlineimage qpen-dot.png {Dotted line}
442 \row
443 \li Qt::SolidLine
444 \li Qt::DashLine
445 \li Qt::DotLine
446 \row
447 \li \inlineimage qpen-dashdot.png {Dash-dot line}
448 \li \inlineimage qpen-dashdotdot.png {Dash-dot-dot line}
449 \li \inlineimage qpen-custom.png {Custom dash line}
450 \row
451 \li Qt::DashDotLine
452 \li Qt::DashDotDotLine
453 \li Qt::CustomDashLine
454 \endtable
455
456 \value NoPen no line at all. For example, QPainter::drawRect()
457 fills but does not draw any boundary line.
458
459 \value SolidLine A plain line.
460 \value DashLine Dashes separated by a few pixels.
461 \value DotLine Dots separated by a few pixels.
462 \value DashDotLine Alternate dots and dashes.
463 \value DashDotDotLine One dash, two dots, one dash, two dots.
464 \value CustomDashLine A custom pattern defined using
465 QPainterPathStroker::setDashPattern().
466
467 \omitvalue MPenStyle
468
469 \sa QPen
470*/
471
472/*!
473 \enum Qt::PenCapStyle
474
475 This enum type defines the pen cap styles supported by Qt, i.e.
476 the line end caps that can be drawn using QPainter.
477
478 \table
479 \row
480 \li \inlineimage qpen-square.png {Square cap extending past endpoint}
481 \li \inlineimage qpen-flat.png {Flat cap ending at endpoint}
482 \li \inlineimage qpen-roundcap.png {Rounded cap}
483 \row
484 \li Qt::SquareCap
485 \li Qt::FlatCap
486 \li Qt::RoundCap
487 \endtable
488
489 \value FlatCap a square line end that does not cover the end
490 point of the line.
491 \value SquareCap a square line end that covers the end point and
492 extends beyond it by half the line width.
493 \value RoundCap a rounded line end.
494 \omitvalue MPenCapStyle
495
496 \sa QPen
497*/
498
499/*!
500 \enum Qt::PenJoinStyle
501
502 This enum type defines the pen join styles supported by Qt, i.e.
503 which joins between two connected lines can be drawn using
504 QPainter.
505
506 \table
507 \row
508 \li \inlineimage qpen-bevel.png {Beveled corner join}
509 \li \inlineimage qpen-miter.png {Pointed miter join}
510 \li \inlineimage qpen-roundjoin.png {Rounded corner join}
511 \row
512 \li Qt::BevelJoin
513 \li Qt::MiterJoin
514 \li Qt::RoundJoin
515 \endtable
516
517 \value MiterJoin The outer edges of the lines are extended to
518 meet at an angle, and this area is filled.
519 \value BevelJoin The triangular notch between the two lines is filled.
520 \value RoundJoin A circular arc between the two lines is filled.
521 \value SvgMiterJoin A miter join corresponding to the definition of
522 a miter join in the \l{http://www.w3.org/TR/SVGMobile12/}{SVG 1.2 Tiny} specification.
523 \omitvalue MPenJoinStyle
524
525 \sa QPen
526*/
527
528/*!
529 \enum Qt::BrushStyle
530
531 This enum type defines the brush styles supported by Qt, i.e. the
532 fill pattern of shapes drawn using QPainter.
533
534 \image brush-styles.png Brush Styles
535
536 \value NoBrush No brush pattern.
537 \value SolidPattern Uniform color.
538 \value Dense1Pattern Extremely dense brush pattern.
539 \value Dense2Pattern Very dense brush pattern.
540 \value Dense3Pattern Somewhat dense brush pattern.
541 \value Dense4Pattern Half dense brush pattern.
542 \value Dense5Pattern Somewhat sparse brush pattern.
543 \value Dense6Pattern Very sparse brush pattern.
544 \value Dense7Pattern Extremely sparse brush pattern.
545 \value HorPattern Horizontal lines.
546 \value VerPattern Vertical lines.
547 \value CrossPattern Crossing horizontal and vertical lines.
548 \value BDiagPattern Backward diagonal lines.
549 \value FDiagPattern Forward diagonal lines.
550 \value DiagCrossPattern Crossing diagonal lines.
551 \value LinearGradientPattern Linear gradient (set using a dedicated QBrush constructor).
552 \value ConicalGradientPattern Conical gradient (set using a dedicated QBrush constructor).
553 \value RadialGradientPattern Radial gradient (set using a dedicated QBrush constructor).
554 \value TexturePattern Custom pattern (see QBrush::setTexture()).
555
556 \sa QBrush
557*/
558
559/*!
560 \enum Qt::TextFlag
561
562 This enum type is used to define some modifier flags. Some of
563 these flags only make sense in the context of printing:
564
565 \value TextSingleLine Treats all whitespace as spaces and prints just
566 one line.
567 \value TextDontClip If it's impossible to stay within the given bounds,
568 it prints outside.
569 \value TextExpandTabs Makes the U+0009 (ASCII tab) character move to
570 the next tab stop.
571 \value TextShowMnemonic Displays the string "\&P" as \underline{P}
572 For an ampersand, use "\&\&".
573 \value TextWordWrap Breaks lines at appropriate points, e.g. at word
574 boundaries.
575 \value TextWrapAnywhere Breaks lines anywhere, even within words.
576 \value TextHideMnemonic Same as Qt::TextShowMnemonic but doesn't draw
577 the underlines.
578 \value TextDontPrint Treat this text as "hidden" and don't print it.
579 \value TextIncludeTrailingSpaces When this option is set,
580 QTextLine::naturalTextWidth() and QTextLine::naturalTextRect() will
581 return a value that includes the width of trailing spaces in the
582 text; otherwise this width is excluded.
583 \value TextJustificationForced Ensures that text lines are justified.
584
585 \omitvalue TextLongestVariant
586 \omitvalue TextForceLeftToRight
587 \omitvalue TextForceRightToLeft
588
589 You can use as many modifier flags as you want, except that
590 Qt::TextSingleLine and Qt::TextWordWrap cannot be combined.
591
592 Flags that are inappropriate for a given use are generally
593 ignored.
594*/
595
596/*!
597 \enum Qt::BGMode
598
599 Background mode:
600
601 \value TransparentMode
602 \value OpaqueMode
603*/
604
605/*!
606 \enum Qt::ConnectionType
607
608 This enum describes the types of connection that can be used
609 between signals and slots. In particular, it determines whether a
610 particular signal is delivered to a slot immediately or queued for
611 delivery at a later time.
612
613 \value AutoConnection
614 \b (Default) If the receiver \l{QObject#Thread Affinity}{lives in} the
615 thread that emits the signal, Qt::DirectConnection is used. Otherwise,
616 Qt::QueuedConnection is used. The connection type is
617 determined when the signal is emitted.
618
619 \value DirectConnection
620 The slot is invoked immediately when the signal is
621 emitted. The slot is executed in the signalling thread.
622
623 \value QueuedConnection
624 The slot is invoked when control returns to the event loop
625 of the receiver's thread. The slot is executed in the
626 receiver's thread.
627
628 \value BlockingQueuedConnection
629 Same as Qt::QueuedConnection, except that the signalling thread blocks
630 until the slot returns. This connection must \e not be used if the
631 receiver lives in the signalling thread, or else the application
632 will deadlock.
633
634 \value UniqueConnection
635 This is a flag that can be combined with any one of the above
636 connection types, using a bitwise OR. When Qt::UniqueConnection is
637 set, QObject::connect() will fail if the connection already exists
638 (i.e. if the same signal is already connected to the same slot
639 for the same pair of objects).
640
641 \value SingleShotConnection
642 This is a flag that can be combined with any one of the above
643 connection types, using a bitwise OR. When Qt::SingleShotConnection
644 is set, the slot is going to be called only once; the connection
645 will be automatically broken when the signal is emitted.
646 This flag was introduced in Qt 6.0.
647
648 With queued connections, the parameters must be of types that are
649 known to Qt's meta-object system, because Qt needs to copy the
650 arguments to store them in an event behind the scenes. If you try
651 to use a queued connection and get the error message:
652
653 \snippet code/doc_src_qnamespace.qdoc 0
654
655 Call qRegisterMetaType() to register the data type before you
656 establish the connection.
657
658 When using signals and slots with multiple threads, see \l{Signals and Slots Across Threads}.
659
660 \sa {Multi-threading in Qt}, QObject::connect(), qRegisterMetaType(), Q_DECLARE_METATYPE()
661*/
662
663/*!
664 \enum Qt::DateFormat
665
666 \value TextDate The default Qt format, which includes the day and month
667 name, the day number in the month, and the year in full. The day and month
668 names will be short names in English (C locale). This effectively uses, for
669 a date, format \c{ddd MMM d yyyy}, for a time \c{HH:mm:ss} and combines
670 these as \c{ddd MMM d HH:mm:ss yyyy} for a date-time, with an optional
671 zone-offset suffix, where relevant. When reading from a string, a
672 fractional part is also recognized on the seconds of a time part, as
673 \c{HH:mm:ss.zzz}, and some minor variants on the format may be recognized,
674 for compatibility with earlier versions of Qt and with changes to the format
675 planned for the future. In particular, the zone-offset suffix presently uses
676 \c{GMT[±tzoff]} with a \c{tzoff} in \c{HH[[:]mm]} format (two-digit hour and
677 optional two-digit minutes, with optional colon separator); this shall
678 change to use \c{UTC} in place of \c{GMT} in a future release of Qt, so the
679 planned \c{UTC} format is recognized.
680
681 \value ISODateWithMs \l{ISO 8601} extended format: uses \c{yyyy-MM-dd} for
682 dates, \c{HH:mm:ss.zzz} for times or \c{yyyy-MM-ddTHH:mm:ss.zzz}
683 (e.g. 2017-07-24T15:46:29.739) for combined dates and times, optionally with
684 a time-zone suffix (Z for UTC otherwise an offset as ±HH:mm) where
685 appropriate. When parsed, a single space, \c{' '}, may be used in place of
686 the \c{'T'} separator between date and time; no other spacing characters are
687 permitted. This format also accepts \c{HH:mm} and plain \c{HH} formats for
688 the time part, either of which may include a fractional part, \c{HH:mm.zzz}
689 or \c{HH.zzz}, applied to the last field present (hour or minute).
690
691 \value ISODate \l{ISO 8601} extended format, as for \c ISODateWithMs, but
692 omitting the milliseconds (\c{.zzz}) part when converting to a string. There
693 is no difference when reading from a string: if a fractional part is present
694 on the last time field, either format will accept it.
695
696 \value RFC2822Date \l{RFC 2822}, \l{RFC 850} and \l{RFC 1036} format: when
697 converting dates to string form, format \c{dd MMM yyyy} is used, for times
698 the format is \c{HH:mm:ss}. For combined date and time, these are combined
699 as \c{dd MMM yyyy HH:mm:ss ±tzoff} (omitting the optional leading day of the
700 week from the first format recognized). When reading from a string either
701 \c{[ddd,] dd MMM yyyy [HH:mm[:ss]][ ±tzoff]} or \c{ddd MMM dd[ HH:mm:ss]
702 yyyy[ ±tzoff]} will be recognized for combined dates and times, where
703 \c{tzoff} is a timezone offset in \c{HHmm} format. Arbitrary spacing may
704 appear before or after the text and any non-empty spacing may replace the
705 spaces in this format. For dates and times separately, the same formats are
706 matched and the unwanted parts are ignored. In particular, note that a time
707 is not recognized without an accompanying date.
708
709 For \c ISODate formats, each \c y, \c M and \c d represents a single digit
710 of the year, month, and day used to specify the date. Each \c H, \c m, and
711 \c s represents a single digit of the hour (up to 24), minute and second
712 used to specify the time. An hour of 24, with zero for all other time
713 fields, is understood as the start of the next day. A \c{.zzz} stands for a
714 fractional part suffix on the preceding field, which may be separated from
715 that field either by a comma \c{','} or the dot \c{'.'} shown. Precision
716 beyond milliseconds is accepted but discarded, rounding to the nearest
717 representable millisecond. The presence of a literal \c T character is used
718 to separate the date and time when both are specified. For the \c TextDate
719 and \c RFC2822Date formats, \c{ddd} stands for the first three letters of
720 the name of the day of the week and \c{MMM} stands for the first three
721 letters of the month name. The names of days and months are always in
722 English (C locale) regardless of user preferences or system settings. The
723 other format characters have the same meaning as for the ISODate format,
724 except that 24 is not accepted as an hour. Parts of a format enclosed in
725 square brackets \c{[...]} are optional; the square brackets do not form part
726 of the format. The plus-or-minus character \c{'±'} here stands for either
727 sign character, \c{'-'} for minus or \c{'+'} for plus.
728
729 \note Zone offsets are measured positive to the east of Greenwich, negative
730 to the west, as is usual for UTC-based offset notations (conflicting with
731 some GMT-based zones-names, such as \c{Etc/GMT+3}, which use the opposite
732 convention).
733
734 \note Qt::ISODate: the parser is lenient about the date-field separators:
735 any punctuation character is accepted in place of the '-' that ISO 8601
736 requires, so "2024/01/02" and "2024.01.02" are also allowed.
737
738 \sa QDate::toString(), QTime::toString(), QDateTime::toString(),
739 QDate::fromString(), QTime::fromString(), QDateTime::fromString()
740*/
741
742/*!
743 \enum Qt::TimeSpec
744
745 \value LocalTime Local time, controlled by a system time-zone setting.
746 \value UTC Coordinated Universal Time.
747 \value OffsetFromUTC An offset in seconds from Coordinated Universal Time.
748 \value TimeZone A named time zone.
749
750 Both LocalTime and TimeZone will take care of transitions, such as
751 the start and end of daylight-saving time. UTC is the standard
752 time relative to which time-zones are usually specified: Greenwich
753 Mean Time has zero offset from it. Neither UTC nor OffsetFromUTC
754 has any transitions.
755
756 When specifying a datetime using OffsetFromUTC, the offset from UTC must
757 also be supplied (it is measured in seconds). To specify a datetime using
758 TimeZone, a QTimeZone must be supplied. From Qt 6.5, a QTimeZone can now
759 package a timespec with, where needed, an offset as a lightweight time
760 description, so that passing a QTimeZone now provides a uniform way to use
761 datetime APIs, saving the need to call them differently for different
762 timespecs.
763
764 \note After a change to the system time-zone setting, the behavior
765 of LocalTime-based QDateTime objects created before the change is
766 undefined: QDateTime may have cached data that the change
767 invalidates. (This is not triggered by \e transitions of the system
768 time-zone.) In long-running processes, updates to the system's
769 time-zone data (e.g. when politicians change the rules for a zone)
770 may likewise lead to conflicts between the updated time-zone
771 information and data cached by QDateTime objects created before
772 the update, using either LocalTime or TimeZone.
773
774 \sa QTimeZone, QDateTime
775*/
776
777/*!
778 \enum Qt::DayOfWeek
779
780 \value Monday
781 \value Tuesday
782 \value Wednesday
783 \value Thursday
784 \value Friday
785 \value Saturday
786 \value Sunday
787*/
788
789/*!
790 \enum Qt::CaseSensitivity
791
792 \value CaseInsensitive
793 \value CaseSensitive
794*/
795
796/*!
797 \enum Qt::ToolBarArea
798
799 \value LeftToolBarArea
800 \value RightToolBarArea
801 \value TopToolBarArea
802 \value BottomToolBarArea
803 \value AllToolBarAreas
804 \value NoToolBarArea
805
806 \omitvalue ToolBarArea_Mask
807*/
808
809/*!
810 \enum Qt::DockWidgetArea
811
812 Represents the areas a QDockWidget can be plugged to.
813 \note A floating dock widget with tabs can be docked anywhere.
814
815 \value LeftDockWidgetArea The left dock area of a QMainWindow.
816 \value RightDockWidgetArea The right dock area of a QMainWindow.
817 \value TopDockWidgetArea The top dock area of a QMainWindow.
818 \value BottomDockWidgetArea The bottom dock area of a QMainWindow.
819 \value AllDockWidgetAreas All dock widget areas (default).
820 \value NoDockWidgetArea No dock widget areas.
821
822 \omitvalue DockWidgetArea_Mask
823 \sa QDockWidget::setAllowedAreas, QDockWidget::isAreaAllowed
824*/
825
826/*!
827 \enum Qt::ColorScheme
828
829 Represents the appearance of an application's theme,
830 defined by QGuiApplication::palette().
831
832 \value Unknown The appearance is unknown.
833 \value Light The background colors are lighter than the text color, i.e. the theme is light.
834 \value Dark The background colors are darker than the text color, i.e. the theme is dark.
835*/
836
837/*!
838 \enum Qt::ContrastPreference
839 \since 6.10
840
841 Represents the user's preferred contrast setting.
842 Styles can honor this setting by increasing the contrast of foreground and background colors,
843 as well as giving widgets and controls thicker borders.
844
845 \value NoPreference No specific preferences.
846 \value HighContrast The user prefers the application to be in high contrast.
847*/
848
849/*!
850 \enum Qt::MotionPreference
851 \since 6.12
852
853 Represents the user's preferred setting for animations and motions.
854 Controls, styles and applications can honor this setting by limiting the amount of animations depending
855 on the enum value.
856
857 \value NoPreference No specific preferences.
858 \value ReducedMotion The user prefers fewer animations in their UI.
859*/
860
861/*!
862 \enum Qt::ImageConversionFlag
863
864 The options marked "(default)" are set if no other values from
865 the list are included (since the defaults are zero):
866
867 Color/Mono preference (ignored for QBitmap):
868
869 \value AutoColor (default) - If the image has \l{QImage::depth()}{depth} 1 and contains only
870 black and white pixels, the pixmap becomes monochrome.
871 \value ColorOnly The pixmap is dithered/converted to the
872 \l{QPixmap::defaultDepth()}{native display depth}.
873 \value MonoOnly The pixmap becomes monochrome. If necessary,
874 it is dithered using the chosen dithering algorithm.
875
876 Dithering mode preference:
877
878 \value DiffuseDither (default) - A high-quality dither using error diffusion.
879 \value OrderedDither A faster, ordered dither.
880 \value ThresholdDither No dithering; closest color is used.
881
882 Dithering mode preference for 1-bit alpha masks:
883
884 \value ThresholdAlphaDither (default) - No dithering.
885 \value OrderedAlphaDither A faster, ordered dither.
886 \value DiffuseAlphaDither A high-quality dither using error diffusion.
887 \omitvalue NoAlpha
888
889 Color matching versus dithering preference:
890
891 \value PreferDither Always dither images when converting to smaller color-spaces.
892 \value AvoidDither Only dither to indexed formats if the source image uses more
893 different colors than the size of the color table of the destination format.
894 \value AutoDither (default) - Only dither when down-converting to 1 or 8-bit indexed formats.
895
896 \value NoOpaqueDetection Do not check whether the image contains non-opaque
897 pixels. Use this if you know that the image is semi-transparent and
898 you want to avoid the overhead of checking the pixels in the image
899 until a non-opaque pixel is found, or if you want the pixmap to
900 retain an alpha channel for some other reason. If the image has no
901 alpha channel this flag has no effect.
902
903 \value NoFormatConversion Don't do any format conversions on the image.
904 Can be useful when converting a QImage to a QPixmap for a one-time
905 rendering operation for example. Note that a QPixmap not in the
906 preferred format will be much slower as a paint device.
907
908 \omitvalue ColorMode_Mask
909 \omitvalue Dither_Mask
910 \omitvalue AlphaDither_Mask
911 \omitvalue DitherMode_Mask
912*/
913
914/*!
915 \enum Qt::UIEffect
916
917 This enum describes the available UI effects.
918
919 By default, Qt will try to use the platform specific desktop
920 settings for each effect. Use the
921 QApplication::setDesktopSettingsAware() function (passing \c false
922 as argument) to prevent this, and the
923 QApplication::setEffectEnabled() to enable or disable a particular
924 effect.
925
926 Note that all effects are disabled on screens running at less than
927 16-bit color depth.
928
929 \omitvalue UI_General
930
931 \value UI_AnimateMenu Show animated menus.
932 \value UI_FadeMenu Show faded menus.
933 \value UI_AnimateCombo Show animated comboboxes.
934 \value UI_AnimateTooltip Show tooltip animations.
935 \value UI_FadeTooltip Show tooltip fading effects.
936 \value UI_AnimateToolBox Reserved
937
938 \sa QApplication::setEffectEnabled(), QGuiApplication::setDesktopSettingsAware()
939*/
940
941/*! \enum Qt::AspectRatioMode
942
943 This enum type defines what happens to the aspect ratio when
944 scaling an rectangle.
945
946 \image qimage-scaling.png {Illustration showing three different
947 ways to scale images with Aspect Ratio Mode}
948
949 \value IgnoreAspectRatio The size is scaled freely. The aspect
950 ratio is not preserved.
951 \value KeepAspectRatio The size is scaled to a rectangle as
952 large as possible inside a given
953 rectangle, preserving the aspect ratio.
954 \value KeepAspectRatioByExpanding The size is scaled to a
955 rectangle as small as possible
956 outside a given rectangle,
957 preserving the aspect ratio.
958
959 \sa QSize::scale(), QImage::scaled()
960*/
961
962/*! \enum Qt::TransformationMode
963
964 This enum type defines whether image transformations (e.g.,
965 scaling) should be smooth or not.
966
967 \value FastTransformation The transformation is performed
968 quickly, with no smoothing.
969 \value SmoothTransformation The resulting image is transformed
970 using bilinear filtering.
971
972 \sa QImage::scaled()
973*/
974
975/*! \enum Qt::Axis
976
977 This enum type defines three values to represent the three
978 axes in the cartesian coordinate system.
979
980 \value XAxis The X axis.
981 \value YAxis The Y axis.
982 \value ZAxis The Z axis.
983
984 \sa QTransform::rotate(), QTransform::rotateRadians()
985 */
986
987/*!
988 \enum Qt::WidgetAttribute
989
990 \keyword widget attributes
991
992 This enum type is used to specify various widget attributes.
993 Attributes are set and cleared with QWidget::setAttribute(), and
994 queried with QWidget::testAttribute(), although some have special
995 convenience functions which are mentioned below.
996
997 \value WA_AcceptDrops Allows data from drag and drop operations
998 to be dropped onto the widget (see QWidget::setAcceptDrops()).
999
1000 \value WA_AlwaysShowToolTips Enables tooltips for inactive windows.
1001
1002 \value WA_CustomWhatsThis Indicates that the widget wants to
1003 continue operating normally in "What's This?" mode. This is set by the
1004 widget's author.
1005
1006 \value WA_DeleteOnClose Makes Qt delete this widget when the
1007 widget has accepted the close event (see QWidget::closeEvent()).
1008
1009 \value WA_Disabled Indicates that the widget is disabled, i.e.
1010 it does not receive any mouse or keyboard events. There is also a
1011 getter functions QWidget::isEnabled(). This is set/cleared by the
1012 Qt kernel.
1013
1014 \value WA_DontShowOnScreen Indicates that the widget is hidden or is
1015 not a part of the viewable Desktop.
1016
1017 \value WA_ForceDisabled Indicates that the widget is
1018 explicitly disabled, i.e. it will remain disabled even when all
1019 its ancestors are set to the enabled state. This implies
1020 WA_Disabled. This is set/cleared by QWidget::setEnabled() and
1021 QWidget::setDisabled().
1022
1023 \value WA_ForceUpdatesDisabled Indicates that updates are
1024 explicitly disabled for the widget; i.e. it will remain disabled
1025 even when all its ancestors are set to the updates-enabled state.
1026 This implies WA_UpdatesDisabled. This is set/cleared by
1027 QWidget::setUpdatesEnabled().
1028
1029 \value WA_Hover Forces Qt to generate paint events when the mouse
1030 enters or leaves the widget. This feature is typically used when
1031 implementing custom styles.
1032
1033 \value WA_InputMethodEnabled Enables input methods for Asian languages.
1034 Must be set when creating custom text editing widgets.
1035
1036 \value WA_KeyboardFocusChange Set on a toplevel window when
1037 the users changes focus with the keyboard (tab, backtab, or shortcut).
1038
1039 \value WA_KeyCompression Enables key event compression if set,
1040 and disables it if not set. By default key compression is off, so
1041 widgets receive one key press event for each key press (or more,
1042 since autorepeat is usually on). If you turn it on and your
1043 program doesn't keep up with key input, Qt may try to compress key
1044 events so that more than one character can be processed in each
1045 event.
1046 For example, a word processor widget might receive 2, 3 or more
1047 characters in each QKeyEvent::text(), if the layout recalculation
1048 takes too long for the CPU.
1049 If a widget supports multiple character unicode input, it is
1050 always safe to turn the compression on.
1051 Qt performs key event compression only for printable characters.
1052 Qt::Modifier keys, cursor movement keys, function keys and
1053 miscellaneous action keys (e.g. Escape, Enter, Backspace,
1054 PrintScreen) will stop key event compression, even if there are
1055 more compressible key events available.
1056 Platforms other than Mac and X11 do not support this compression,
1057 in which case turning it on will have no effect.
1058 This is set/cleared by the widget's author.
1059
1060 \value WA_LayoutOnEntireRect Indicates that the widget
1061 wants QLayout to operate on the entire QWidget::rect(), not only
1062 on QWidget::contentsRect(). This is set by the widget's author.
1063
1064 \value WA_LayoutUsesWidgetRect Ignore the layout item rect from the style
1065 when laying out this widget with QLayout.
1066
1067 \value WA_MacOpaqueSizeGrip Indicates that the native size grip
1068 should be opaque instead of transparent (the default). This attribute
1069 is only applicable to \macos and is set by the widget's author.
1070
1071 \value WA_MacShowFocusRect Indicates that this widget should get a
1072 QFocusFrame around it. Some widgets draw their own focus halo
1073 regardless of this attribute. Not that the QWidget::focusPolicy
1074 also plays the main role in whether something is given focus or
1075 not, this only controls whether or not this gets the focus
1076 frame. This attribute is only applicable to \macos.
1077
1078 \value WA_MacNormalSize Indicates the widget should have the
1079 normal size for widgets in \macos. This attribute is only
1080 applicable to \macos.
1081
1082 \value WA_MacSmallSize Indicates the widget should have the small
1083 size for widgets in \macos. This attribute is only applicable to
1084 \macos.
1085
1086 \value WA_MacMiniSize Indicates the widget should have the mini
1087 size for widgets in \macos. This attribute is only applicable to
1088 \macos.
1089
1090 \value WA_Mapped Indicates that the widget is mapped on screen.
1091 This is set/cleared by the Qt kernel.
1092
1093 \value WA_MouseNoMask Makes the widget receive mouse events for
1094 the entire widget regardless of the currently set mask,
1095 overriding QWidget::setMask(). This is not applicable for
1096 top-level windows.
1097
1098 \value WA_MouseTracking Indicates that the widget has mouse
1099 tracking enabled. See QWidget::mouseTracking.
1100
1101 \value WA_Moved Indicates that the widget has an explicit
1102 position. This is set/cleared by QWidget::move() and
1103 by QWidget::setGeometry().
1104
1105 \value WA_NoChildEventsForParent Indicates that the widget does
1106 not want \l{QEvent::}{ChildAdded} or \l{QEvent::}{ChildRemoved} events sent to its
1107 parent. This is rarely necessary but can help to avoid automatic
1108 insertion widgets like splitters and layouts. This is set by a
1109 widget's author.
1110
1111 \value WA_NoChildEventsFromChildren Indicates that the widget does
1112 not want to receive \l{QEvent::}{ChildAdded} or \l{QEvent::}{ChildRemoved} events sent from its
1113 children. This is set by a widget's author.
1114
1115 \value WA_NoMouseReplay Used for pop-up widgets. Indicates that the most
1116 recent mouse press event should not be replayed when the pop-up widget
1117 closes. The flag is set by the widget's author and cleared by the Qt kernel
1118 every time the widget receives a new mouse event.
1119
1120 \value WA_NoMousePropagation Prohibits mouse events from being propagated
1121 to the widget's parent. This attribute is disabled by default.
1122
1123 \value WA_TransparentForMouseEvents When enabled, this attribute disables
1124 the delivery of mouse events to the widget and its children. Mouse events
1125 are delivered to other widgets as if the widget and its children were not
1126 present in the widget hierarchy; mouse clicks and other events effectively
1127 "pass through" them. This attribute is disabled by default.
1128
1129 \value WA_NoSystemBackground Indicates that the widget has no background,
1130 i.e. when the widget receives paint events, the background is not
1131 automatically repainted. \b Note: Unlike WA_OpaquePaintEvent, newly exposed
1132 areas are \b never filled with the background (e.g., after showing a
1133 window for the first time the user can see "through" it until the
1134 application processes the paint events). This flag is set or cleared by the
1135 widget's author.
1136
1137 \value WA_OpaquePaintEvent Indicates that the widget paints all its pixels
1138 when it receives a paint event. Thus, it is not required for operations
1139 like updating, resizing, scrolling and focus changes to erase the widget
1140 before generating paint events. The use of WA_OpaquePaintEvent provides a
1141 small optimization by helping to reduce flicker on systems that do not
1142 support double buffering and avoiding computational cycles necessary to
1143 erase the background prior to painting. \b Note: Unlike
1144 WA_NoSystemBackground, WA_OpaquePaintEvent makes an effort to avoid
1145 transparent window backgrounds. This flag is set or cleared by the widget's
1146 author.
1147
1148 \value WA_OutsideWSRange Indicates that the widget is outside
1149 the valid range of the window system's coordinate system. A widget
1150 outside the valid range cannot be mapped on screen. This is
1151 set/cleared by the Qt kernel.
1152
1153 \value WA_PaintOnScreen Indicates that the widget wants to draw directly
1154 onto the screen. Widgets with this attribute set do not participate in
1155 composition management, i.e. they cannot be semi-transparent or shine
1156 through semi-transparent overlapping widgets. \b Note: This flag is only
1157 supported on X11 and it disables double buffering. On Qt for Embedded
1158 Linux, the flag only works when set on a top-level widget and it relies on
1159 support from the active screen driver. This flag is set or cleared by the
1160 widget's author. To render outside of Qt's paint system, e.g., if you
1161 require native painting primitives, you need to reimplement
1162 QWidget::paintEngine() to return 0 and set this flag.
1163
1164 \value WA_PaintUnclipped Makes all painters operating on this widget
1165 unclipped. Children of this widget or other widgets in front of it do not
1166 clip the area the painter can paint on. This flag is only supported for
1167 widgets with the WA_PaintOnScreen flag set. The preferred way to do this in
1168 a cross platform way is to create a transparent widget that lies in front
1169 of the other widgets.
1170
1171 \value WA_PendingMoveEvent Indicates that a move event is pending, e.g.,
1172 when a hidden widget was moved. This flag is set or cleared by the Qt
1173 kernel.
1174
1175 \value WA_PendingResizeEvent Indicates that a resize event is pending,
1176 e.g., when a hidden widget was resized. This flag is set or cleared by the
1177 Qt kernel.
1178
1179 \value WA_QuitOnClose Indicates that the widget should be taken into account
1180 when deciding whether to quit the application when the last window is closed.
1181 This behavior can be modified with the QGuiApplication::quitOnLastWindowClosed
1182 property. By default this attribute is set for all widgets of type Qt::Window.
1183
1184 \value WA_Resized Indicates that the widget has an explicit size. This flag
1185 is set or cleared by QWidget::resize() and QWidget::setGeometry().
1186
1187 \value WA_RightToLeft Indicates that the layout direction for the widget
1188 is right to left.
1189
1190 \value WA_SetCursor Indicates that the widget has a cursor of its own. This
1191 flag is set or cleared by QWidget::setCursor() and QWidget::unsetCursor().
1192
1193 \value WA_SetFont Indicates that the widget has a font of its own. This
1194 flag is set or cleared by QWidget::setFont().
1195
1196 \value WA_SetPalette Indicates that the widget has a palette of its own.
1197 This flag is set or cleared by QWidget::setPalette().
1198
1199 \value WA_SetStyle Indicates that the widget has a style of its own. This
1200 flag is set or cleared by QWidget::setStyle().
1201
1202 \value WA_ShowModal \e{This attribute has been deprecated.} Use
1203 QWidget::windowModality instead.
1204
1205 \value WA_StaticContents Indicates that the widget contents are north-west
1206 aligned and static. On resize, such a widget will receive paint events only
1207 for parts of itself that are newly visible. This flag is set or cleared by
1208 the widget's author.
1209
1210 \value WA_StyleSheet Indicates that the widget is styled using a
1211 \l{Qt Style Sheets}{style sheet}. WA_StyleSheet is set whenever a widget
1212 is subject to a style sheet, even if the style sheet did not affect the
1213 widget appearance.
1214
1215 \value WA_StyleSheetTarget Indicates that the widget appearance was modified
1216 by a \l{Qt Style Sheets}{style sheet}. WA_StyleSheet will also be set.
1217 This value was introduced in Qt 5.12.
1218
1219 \value WA_TabletTracking Indicates that the widget has tablet
1220 tracking enabled. See QWidget::tabletTracking.
1221
1222 \value WA_TranslucentBackground Indicates that the widget should have a
1223 translucent background, i.e., any non-opaque regions of the widgets will be
1224 translucent because the widget will have an alpha channel. Setting this
1225 flag causes WA_NoSystemBackground to be set. On Windows the widget also
1226 needs the Qt::FramelessWindowHint window flag to be set. This flag is set
1227 or cleared by the widget's author. As of Qt 5.0, toggling this attribute
1228 after the widget has been shown is not uniformly supported across
1229 platforms. When translucent background is desired, set the attribute early
1230 when creating the widget, and avoid altering it afterwards.
1231
1232 \value WA_UnderMouse Indicates that the widget is under the mouse cursor.
1233 The value is not updated correctly during drag and drop operations. There
1234 is also a getter function, QWidget::underMouse(). This flag is set or
1235 cleared by the Qt kernel.
1236
1237 \value WA_UpdatesDisabled Indicates that updates are blocked (including the
1238 system background). This flag is set or cleared by the Qt kernel.
1239 \b Warning: This flag must \e never be set or cleared by the widget's author.
1240
1241 \value WA_WindowModified Indicates that the window is marked as modified.
1242 On some platforms this flag will do nothing, on others (including \macos
1243 and Windows) the window will take a modified appearance. This flag is set
1244 or cleared by QWidget::setWindowModified().
1245
1246 \value WA_WindowPropagation Makes a toplevel window inherit font, palette
1247 and locale from its parent.
1248
1249 \value WA_MacAlwaysShowToolWindow On \macos, show the tool window even
1250 when the application is not active. By default, all tool windows are
1251 hidden when the application is inactive.
1252
1253 \value WA_SetLocale Indicates the locale should be taken into consideration
1254 in the widget.
1255
1256 \value WA_StyledBackground Indicates the widget should be drawn using a
1257 styled background.
1258
1259 \value WA_ShowWithoutActivating Show the widget without making it active.
1260
1261 \value WA_NativeWindow Indicates that a native window is created for the
1262 widget. Enabling this flag will also force a native window for the widget's
1263 ancestors unless Qt::WA_DontCreateNativeAncestors is set.
1264
1265 \value WA_DontCreateNativeAncestors Indicates that the widget's ancestors
1266 are kept non-native even though the widget itself is native.
1267
1268 \value WA_X11NetWmWindowTypeDesktop Adds _NET_WM_WINDOW_TYPE_DESKTOP to the
1269 window's _NET_WM_WINDOW_TYPE X11 window property. See
1270 http://standards.freedesktop.org/wm-spec/ for more details. This attribute
1271 has no effect on non-X11 platforms.
1272
1273 \value WA_X11NetWmWindowTypeDock Adds _NET_WM_WINDOW_TYPE_DOCK to the
1274 window's _NET_WM_WINDOW_TYPE X11 window property. See
1275 http://standards.freedesktop.org/wm-spec/ for more details. This attribute
1276 has no effect on non-X11 platforms.
1277
1278 \value WA_X11NetWmWindowTypeToolBar Adds _NET_WM_WINDOW_TYPE_TOOLBAR to the
1279 window's _NET_WM_WINDOW_TYPE X11 window property. See
1280 http://standards.freedesktop.org/wm-spec/ for more details. This attribute
1281 has no effect on non-X11 platforms. \b Note: Qt automatically sets this
1282 attribute for QToolBar.
1283
1284 \value WA_X11NetWmWindowTypeMenu Adds _NET_WM_WINDOW_TYPE_MENU to the
1285 window's _NET_WM_WINDOW_TYPE X11 window property. See
1286 http://standards.freedesktop.org/wm-spec/ for more details. This attribute
1287 has no effect on non-X11 platforms. \b Note: Qt automatically sets this
1288 attribute for QMenu when torn-off.
1289
1290 \value WA_X11NetWmWindowTypeUtility Adds _NET_WM_WINDOW_TYPE_UTILITY to the
1291 window's _NET_WM_WINDOW_TYPE X11 window property. See
1292 http://standards.freedesktop.org/wm-spec/ for more details. This attribute
1293 has no effect on non-X11 platforms. \b Note: Qt automatically sets this
1294 attribute for the Qt::Tool window type.
1295
1296 \value WA_X11NetWmWindowTypeSplash Adds _NET_WM_WINDOW_TYPE_SPLASH to the
1297 window's _NET_WM_WINDOW_TYPE X11 window property. See
1298 http://standards.freedesktop.org/wm-spec/ for more details. This attribute
1299 has no effect on non-X11 platforms. \b Note: Qt automatically sets this
1300 attribute for the Qt::SplashScreen window type.
1301
1302 \value WA_X11NetWmWindowTypeDialog Adds _NET_WM_WINDOW_TYPE_DIALOG
1303 to the window's _NET_WM_WINDOW_TYPE X11 window property. See
1304 http://standards.freedesktop.org/wm-spec/ for more details. This
1305 attribute has no effect on non-X11 platforms. \b Note: Qt automatically sets
1306 this attribute for the Qt::Dialog and Qt::Sheet window types.
1307
1308 \value WA_X11NetWmWindowTypeDropDownMenu Adds
1309 _NET_WM_WINDOW_TYPE_DROPDOWN_MENU to the window's
1310 _NET_WM_WINDOW_TYPE X11 window property. See
1311 http://standards.freedesktop.org/wm-spec/ for more details. This
1312 attribute has no effect on non-X11 platforms. \b Note: Qt
1313 automatically sets this attribute for QMenu objects added to a QMenuBar.
1314
1315 \value WA_X11NetWmWindowTypePopupMenu Adds _NET_WM_WINDOW_TYPE_POPUP_MENU
1316 to the window's _NET_WM_WINDOW_TYPE X11 window property. See
1317 http://standards.freedesktop.org/wm-spec/ for more details. This attribute
1318 has no effect on non-X11 platforms. \b Note: Qt automatically sets this
1319 attribute for QMenu.
1320
1321 \value WA_X11NetWmWindowTypeToolTip Adds _NET_WM_WINDOW_TYPE_TOOLTIP to the
1322 window's _NET_WM_WINDOW_TYPE X11 window property. See
1323 http://standards.freedesktop.org/wm-spec/ for more details. This attribute
1324 has no effect on non-X11 platforms. \b Note: Qt automatically sets this
1325 attribute for the Qt::ToolTip window type.
1326
1327 \value WA_X11NetWmWindowTypeNotification Adds
1328 _NET_WM_WINDOW_TYPE_NOTIFICATION to the window's _NET_WM_WINDOW_TYPE X11
1329 window property. See http://standards.freedesktop.org/wm-spec/ for more
1330 details. This attribute has no effect on non-X11 platforms.
1331
1332 \value WA_X11NetWmWindowTypeCombo Adds _NET_WM_WINDOW_TYPE_COMBO
1333 to the window's _NET_WM_WINDOW_TYPE X11 window property. See
1334 http://standards.freedesktop.org/wm-spec/ for more details. This attribute
1335 has no effect on non-X11 platforms. \b Note: Qt automatically sets this
1336 attribute for the QComboBox pop-up.
1337
1338 \value WA_X11NetWmWindowTypeDND Adds _NET_WM_WINDOW_TYPE_DND to
1339 the window's _NET_WM_WINDOW_TYPE X11 window property. See
1340 http://standards.freedesktop.org/wm-spec/ for more details. This attribute
1341 has no effect on non-X11 platforms. \b Note: Qt automatically sets this
1342 attribute on the feedback widget used during a drag.
1343
1344 \value WA_AcceptTouchEvents Allows touch events (see QTouchEvent)
1345 to be sent to the widget. Must be set on all widgets that can
1346 handle touch events. Without this attribute set, events from a
1347 touch device will be sent as mouse events.
1348
1349 \value WA_TouchPadAcceptSingleTouchEvents Allows touchpad single
1350 touch events to be sent to the widget.
1351
1352 \value WA_X11DoNotAcceptFocus Asks the window manager to not give focus
1353 to this top level window. This attribute has no effect on non-X11
1354 platforms.
1355
1356 \value [since 5.4] WA_AlwaysStackOnTop Forces QOpenGLWidget and
1357 QQuickWidget to be drawn last, on top of other widgets. Ignored for other
1358 type of widgets. Setting this attribute breaks the stacking order, but
1359 allows having a semi-transparent OpenGL widget with other widgets visible
1360 underneath. It is strongly recommended to call \l{QWidget::}{update()} on the widget's
1361 top-level window after enabling or disabling this attribute.
1362
1363 \value WA_ContentsMarginsRespectsSafeArea A QWidget respects the safe
1364 area margins of a window by incorporating the margins into its contents'
1365 margins by default. This means, that a QLayout will use the content area
1366 of a widget for its layout, unless the Qt::WA_LayoutOnEntireRect attribute
1367 is set. This along with a contents margin of 0 can be used on the actual
1368 layout, to allow for example a background image to underlay the status bar and other
1369 system areas on an iOS device, while still allowing child widgets of
1370 that background to be inset based on the safe area.
1371
1372 \omitvalue WA_LaidOut
1373 \omitvalue WA_WState_Visible
1374 \omitvalue WA_WState_Hidden
1375 \omitvalue WA_PendingUpdate
1376 \omitvalue WA_InvalidSize
1377 \omitvalue WA_GrabbedShortcut
1378 \omitvalue WA_SetWindowIcon
1379 \omitvalue WA_SetLayoutDirection
1380 \omitvalue WA_ForceUpdatesDisabled
1381 \omitvalue WA_WState_Created
1382 \omitvalue WA_WState_CompressKeys
1383 \omitvalue WA_WState_InPaintEvent
1384 \omitvalue WA_WState_Reparented
1385 \omitvalue WA_WState_ConfigPending
1386 \omitvalue WA_WState_Polished
1387 \omitvalue WA_WState_OwnSizePolicy
1388 \omitvalue WA_WState_ExplicitShowHide
1389 \omitvalue WA_InputMethodTransparent
1390 \omitvalue WA_DropSiteRegistered
1391 \omitvalue WA_NoX11EventCompression
1392 \omitvalue WA_TintedBackground
1393 \omitvalue WA_X11OpenGLOverlay
1394 \omitvalue WA_CanHostQMdiSubWindowTitleBar
1395 \omitvalue WA_X11BypassTransientForHint
1396 \omitvalue WA_DontShowOnScreen
1397 \omitvalue WA_SetWindowModality
1398 \omitvalue WA_WState_WindowOpacitySet
1399 \omitvalue WA_WState_AcceptedTouchBeginEvent
1400 \omitvalue WA_StyleSheet
1401 \omitvalue WA_AttributeCount
1402*/
1403
1404/*! \typedef Qt::HANDLE
1405
1406 A handle type for system objects, defined as \c{void *}
1407 on all platforms.
1408*/
1409
1410/*!
1411 \enum Qt::Key
1412
1413 The key names used by Qt.
1414
1415 \value Key_Escape
1416 \value Key_Tab
1417 \value Key_Backtab
1418 \value Key_Backspace
1419 \value Key_Return
1420 \value Key_Enter Typically located on the keypad.
1421 \value Key_Insert
1422 \value Key_Delete
1423 \value Key_Pause The Pause/Break key (\b Note: Not related to pausing media)
1424 \value Key_Print
1425 \value Key_SysReq
1426 \value Key_Clear Corresponds to the \b Clear key on selected Apple
1427 keyboard models. On other systems it is commonly mapped
1428 to the numeric keypad key \b 5, when \b {Num Lock} is
1429 \c off.
1430 \value Key_Home
1431 \value Key_End
1432 \value Key_Left
1433 \value Key_Up
1434 \value Key_Right
1435 \value Key_Down
1436 \value Key_PageUp
1437 \value Key_PageDown
1438 \value Key_Shift
1439 \value Key_Control On \macos, this corresponds to the Command keys.
1440 \value Key_Meta On \macos, this corresponds to the Control keys.
1441 On Windows keyboards, this key is mapped to the
1442 Windows key.
1443 \value Key_Alt
1444 \value Key_AltGr On Windows, when the \c KeyDown event for this key is
1445 sent, the Ctrl+Alt modifiers are also set.
1446 \value Key_CapsLock
1447 \value Key_NumLock
1448 \value Key_ScrollLock
1449 \value Key_F1
1450 \value Key_F2
1451 \value Key_F3
1452 \value Key_F4
1453 \value Key_F5
1454 \value Key_F6
1455 \value Key_F7
1456 \value Key_F8
1457 \value Key_F9
1458 \value Key_F10
1459 \value Key_F11
1460 \value Key_F12
1461 \value Key_F13
1462 \value Key_F14
1463 \value Key_F15
1464 \value Key_F16
1465 \value Key_F17
1466 \value Key_F18
1467 \value Key_F19
1468 \value Key_F20
1469 \value Key_F21
1470 \value Key_F22
1471 \value Key_F23
1472 \value Key_F24
1473 \value Key_F25
1474 \value Key_F26
1475 \value Key_F27
1476 \value Key_F28
1477 \value Key_F29
1478 \value Key_F30
1479 \value Key_F31
1480 \value Key_F32
1481 \value Key_F33
1482 \value Key_F34
1483 \value Key_F35
1484 \value Key_Super_L
1485 \value Key_Super_R
1486 \value Key_Menu
1487 \value Key_Hyper_L
1488 \value Key_Hyper_R
1489 \value Key_Help
1490 \value Key_Direction_L
1491 \value Key_Direction_R
1492
1493 \value Key_Space
1494 \value Key_Any
1495 \value Key_Exclam
1496 \value Key_QuoteDbl
1497 \value Key_NumberSign
1498 \value Key_Dollar
1499 \value Key_Percent
1500 \value Key_Ampersand
1501 \value Key_Apostrophe
1502 \value Key_ParenLeft
1503 \value Key_ParenRight
1504 \value Key_Asterisk
1505 \value Key_Plus
1506 \value Key_Comma
1507 \value Key_Minus
1508 \value Key_Period
1509 \value Key_Slash
1510 \value Key_0
1511 \value Key_1
1512 \value Key_2
1513 \value Key_3
1514 \value Key_4
1515 \value Key_5
1516 \value Key_6
1517 \value Key_7
1518 \value Key_8
1519 \value Key_9
1520 \value Key_Colon
1521 \value Key_Semicolon
1522 \value Key_Less
1523 \value Key_Equal
1524 \value Key_Greater
1525 \value Key_Question
1526 \value Key_At
1527 \value Key_A
1528 \value Key_B
1529 \value Key_C
1530 \value Key_D
1531 \value Key_E
1532 \value Key_F
1533 \value Key_G
1534 \value Key_H
1535 \value Key_I
1536 \value Key_J
1537 \value Key_K
1538 \value Key_L
1539 \value Key_M
1540 \value Key_N
1541 \value Key_O
1542 \value Key_P
1543 \value Key_Q
1544 \value Key_R
1545 \value Key_S
1546 \value Key_T
1547 \value Key_U
1548 \value Key_V
1549 \value Key_W
1550 \value Key_X
1551 \value Key_Y
1552 \value Key_Z
1553 \value Key_BracketLeft
1554 \value Key_Backslash
1555 \value Key_BracketRight
1556 \value Key_AsciiCircum
1557 \value Key_Underscore
1558 \value Key_QuoteLeft
1559 \value Key_BraceLeft
1560 \value Key_Bar
1561 \value Key_BraceRight
1562 \value Key_AsciiTilde
1563 \value Key_nobreakspace
1564 \value Key_exclamdown
1565 \value Key_cent
1566 \value Key_sterling
1567 \value Key_currency
1568 \value Key_yen
1569 \value Key_brokenbar
1570 \value Key_section
1571 \value Key_diaeresis
1572 \value Key_copyright
1573 \value Key_ordfeminine
1574 \value Key_guillemotleft
1575 \value Key_notsign
1576 \value Key_hyphen
1577 \value Key_registered
1578 \value Key_macron
1579 \value Key_degree
1580 \value Key_plusminus
1581 \value Key_twosuperior
1582 \value Key_threesuperior
1583 \value Key_acute
1584 \value [since 6.7] Key_micro
1585 \value Key_mu Deprecated alias for Key_micro
1586 \value Key_paragraph
1587 \value Key_periodcentered
1588 \value Key_cedilla
1589 \value Key_onesuperior
1590 \value Key_masculine
1591 \value Key_guillemotright
1592 \value Key_onequarter
1593 \value Key_onehalf
1594 \value Key_threequarters
1595 \value Key_questiondown
1596 \value Key_Agrave
1597 \value Key_Aacute
1598 \value Key_Acircumflex
1599 \value Key_Atilde
1600 \value Key_Adiaeresis
1601 \value Key_Aring
1602 \value Key_AE
1603 \value Key_Ccedilla
1604 \value Key_Egrave
1605 \value Key_Eacute
1606 \value Key_Ecircumflex
1607 \value Key_Ediaeresis
1608 \value Key_Igrave
1609 \value Key_Iacute
1610 \value Key_Icircumflex
1611 \value Key_Idiaeresis
1612 \value Key_ETH
1613 \value Key_Ntilde
1614 \value Key_Ograve
1615 \value Key_Oacute
1616 \value Key_Ocircumflex
1617 \value Key_Otilde
1618 \value Key_Odiaeresis
1619 \value Key_multiply
1620 \value Key_Ooblique
1621 \value Key_Ugrave
1622 \value Key_Uacute
1623 \value Key_Ucircumflex
1624 \value Key_Udiaeresis
1625 \value Key_Yacute
1626 \value Key_THORN
1627 \value Key_ssharp
1628 \value Key_division
1629 \value Key_ydiaeresis
1630
1631 \value Key_Multi_key
1632 \value Key_Codeinput
1633 \value Key_SingleCandidate
1634 \value Key_MultipleCandidate
1635 \value Key_PreviousCandidate
1636 \value Key_Mode_switch
1637 \value Key_Kanji
1638 \value Key_Muhenkan
1639 \value Key_Henkan
1640 \value Key_Romaji
1641 \value Key_Hiragana
1642 \value Key_Katakana
1643 \value Key_Hiragana_Katakana
1644 \value Key_Zenkaku
1645 \value Key_Hankaku
1646 \value Key_Zenkaku_Hankaku
1647 \value Key_Touroku
1648 \value Key_Massyo
1649 \value Key_Kana_Lock
1650 \value Key_Kana_Shift
1651 \value Key_Eisu_Shift
1652 \value Key_Eisu_toggle
1653 \value Key_Hangul
1654 \value Key_Hangul_Start
1655 \value Key_Hangul_End
1656 \value Key_Hangul_Hanja
1657 \value Key_Hangul_Jamo
1658 \value Key_Hangul_Romaja
1659 \value Key_Hangul_Jeonja
1660 \value Key_Hangul_Banja
1661 \value Key_Hangul_PreHanja
1662 \value Key_Hangul_PostHanja
1663 \value Key_Hangul_Special
1664 \value Key_Dead_Grave
1665 \value Key_Dead_Acute
1666 \value Key_Dead_Circumflex
1667 \value Key_Dead_Tilde
1668 \value Key_Dead_Macron
1669 \value Key_Dead_Breve
1670 \value Key_Dead_Abovedot
1671 \value Key_Dead_Diaeresis
1672 \value Key_Dead_Abovering
1673 \value Key_Dead_Doubleacute
1674 \value Key_Dead_Caron
1675 \value Key_Dead_Cedilla
1676 \value Key_Dead_Ogonek
1677 \value Key_Dead_Iota
1678 \value Key_Dead_Voiced_Sound
1679 \value Key_Dead_Semivoiced_Sound
1680 \value Key_Dead_Belowdot
1681 \value Key_Dead_Hook
1682 \value Key_Dead_Horn
1683 \value Key_Dead_Stroke
1684 \value Key_Dead_Abovecomma
1685 \value Key_Dead_Abovereversedcomma
1686 \value Key_Dead_Doublegrave
1687 \value Key_Dead_Belowring
1688 \value Key_Dead_Belowmacron
1689 \value Key_Dead_Belowcircumflex
1690 \value Key_Dead_Belowtilde
1691 \value Key_Dead_Belowbreve
1692 \value Key_Dead_Belowdiaeresis
1693 \value Key_Dead_Invertedbreve
1694 \value Key_Dead_Belowcomma
1695 \value Key_Dead_Currency
1696 \value Key_Dead_a
1697 \value Key_Dead_A
1698 \value Key_Dead_e
1699 \value Key_Dead_E
1700 \value Key_Dead_i
1701 \value Key_Dead_I
1702 \value Key_Dead_o
1703 \value Key_Dead_O
1704 \value Key_Dead_u
1705 \value Key_Dead_U
1706 \value Key_Dead_Small_Schwa
1707 \value Key_Dead_Capital_Schwa
1708 \value Key_Dead_Greek
1709 \value Key_Dead_Lowline
1710 \value Key_Dead_Aboveverticalline
1711 \value Key_Dead_Belowverticalline
1712 \value Key_Dead_Longsolidusoverlay
1713 \value Key_Back
1714 \value Key_Forward
1715 \value Key_Stop
1716 \value Key_Refresh
1717 \value Key_VolumeDown
1718 \value Key_VolumeMute
1719 \value Key_VolumeUp
1720 \value Key_BassBoost
1721 \value Key_BassUp
1722 \value Key_BassDown
1723 \value Key_TrebleUp
1724 \value Key_TrebleDown
1725 \value Key_MediaPlay A key setting the state of the media player to play
1726 \value Key_MediaStop A key setting the state of the media player to stop
1727 \value Key_MediaPrevious
1728 \value Key_MediaNext
1729 \value Key_MediaRecord
1730 \value Key_MediaPause A key setting the state of the media player to pause (\b Note: not the pause/break key)
1731 \value Key_MediaTogglePlayPause A key to toggle the play/pause state in the media player (rather than setting an absolute state)
1732 \value Key_HomePage
1733 \value Key_Favorites
1734 \value Key_Search
1735 \value Key_Standby
1736 \value Key_OpenUrl
1737 \value Key_LaunchMail
1738 \value Key_LaunchMedia
1739 \value Key_Launch0
1740 \value Key_Launch1
1741 \value Key_Launch2
1742 \value Key_Launch3
1743 \value Key_Launch4
1744 \value Key_Launch5
1745 \value Key_Launch6
1746 \value Key_Launch7
1747 \value Key_Launch8
1748 \value Key_Launch9
1749 \value Key_LaunchA
1750 \value Key_LaunchB
1751 \value Key_LaunchC
1752 \value Key_LaunchD
1753 \value Key_LaunchE
1754 \value Key_LaunchF
1755 \value Key_LaunchG
1756 \value Key_LaunchH
1757 \value Key_MonBrightnessUp
1758 \value Key_MonBrightnessDown
1759 \value Key_KeyboardLightOnOff
1760 \value Key_KeyboardBrightnessUp
1761 \value Key_KeyboardBrightnessDown
1762 \value Key_PowerOff
1763 \value Key_WakeUp
1764 \value Key_Eject
1765 \value Key_ScreenSaver
1766 \value Key_WWW
1767 \value Key_Memo
1768 \value Key_LightBulb
1769 \value Key_Shop
1770 \value Key_History
1771 \value Key_AddFavorite
1772 \value Key_HotLinks
1773 \value Key_BrightnessAdjust
1774 \value Key_Finance
1775 \value Key_Community
1776 \value Key_AudioRewind
1777 \value Key_BackForward
1778 \value Key_ApplicationLeft
1779 \value Key_ApplicationRight
1780 \value Key_Book
1781 \value Key_CD
1782 \value Key_Calculator
1783 \value Key_ToDoList
1784 \value Key_ClearGrab
1785 \value Key_Close
1786 \value Key_Copy
1787 \value Key_Cut
1788 \value Key_Display
1789 \value Key_DOS
1790 \value Key_Documents
1791 \value Key_Excel
1792 \value Key_Explorer
1793 \value Key_Game
1794 \value Key_Go
1795 \value Key_iTouch
1796 \value Key_LogOff
1797 \value Key_Market
1798 \value Key_Meeting
1799 \value Key_MenuKB
1800 \value Key_MenuPB
1801 \value Key_MySites
1802 \value Key_News
1803 \value Key_OfficeHome
1804 \value Key_Option
1805 \value Key_Paste
1806 \value Key_Phone
1807 \value Key_Calendar
1808 \value Key_Reply
1809 \value Key_Reload
1810 \value Key_RotateWindows
1811 \value Key_RotationPB
1812 \value Key_RotationKB
1813 \value Key_Save
1814 \value Key_Send
1815 \value Key_Spell
1816 \value Key_SplitScreen
1817 \value Key_Support
1818 \value Key_TaskPane
1819 \value Key_Terminal
1820 \value Key_Tools
1821 \value Key_Travel
1822 \value Key_Video
1823 \value Key_Word
1824 \value Key_Xfer
1825 \value Key_ZoomIn
1826 \value Key_ZoomOut
1827 \value Key_Away
1828 \value Key_Messenger
1829 \value Key_WebCam
1830 \value Key_MailForward
1831 \value Key_Pictures
1832 \value Key_Music
1833 \value Key_Battery
1834 \value Key_Bluetooth
1835 \value Key_WLAN
1836 \value Key_UWB
1837 \value Key_AudioForward
1838 \value Key_AudioRepeat
1839 \value Key_AudioRandomPlay
1840 \value Key_Subtitle
1841 \value Key_AudioCycleTrack
1842 \value Key_Time
1843 \value Key_Hibernate
1844 \value Key_View
1845 \value Key_TopMenu
1846 \value Key_PowerDown
1847 \value Key_Suspend
1848 \value Key_ContrastAdjust
1849 \value Key_TouchpadToggle
1850 \value Key_TouchpadOn
1851 \value Key_TouchpadOff
1852 \value Key_MicMute
1853 \value Key_Red
1854 \value Key_Green
1855 \value Key_Yellow
1856 \value Key_Blue
1857 \value Key_ChannelUp
1858 \value Key_ChannelDown
1859 \value Key_Guide
1860 \value Key_Info
1861 \value Key_Settings
1862 \value Key_MicVolumeUp
1863 \value Key_MicVolumeDown
1864 \value Key_Keyboard
1865 \value Key_New
1866 \value Key_Open
1867 \value Key_Find
1868 \value Key_Undo
1869 \value Key_Redo
1870 \value Key_MediaLast
1871 \value Key_unknown
1872
1873 \value Key_Call A key to answer or initiate a call (see Qt::Key_ToggleCallHangup for a key to toggle current call state)
1874 \value Key_Camera A key to activate the camera shutter. On Windows Runtime, the environment variable QT_QPA_ENABLE_CAMERA_KEYS must be set to receive the event.
1875 \value Key_CameraFocus A key to focus the camera. On Windows Runtime, the environment variable QT_QPA_ENABLE_CAMERA_KEYS must be set to receive the event.
1876 \value Key_Context1
1877 \value Key_Context2
1878 \value Key_Context3
1879 \value Key_Context4
1880 \value Key_Flip
1881 \value Key_Hangup A key to end an ongoing call (see Qt::Key_ToggleCallHangup for a key to toggle current call state)
1882 \value Key_No
1883 \value Key_Select
1884 \value Key_Yes
1885 \value Key_ToggleCallHangup A key to toggle the current call state (ie. either answer, or hangup) depending on current call state
1886 \value Key_VoiceDial
1887 \value Key_LastNumberRedial
1888
1889 \value Key_Execute
1890 \value Key_Printer
1891 \value Key_Play
1892 \value Key_Sleep
1893 \value Key_Zoom
1894 \value Key_Exit
1895 \value Key_Cancel
1896
1897 \sa QKeyEvent::key()
1898*/
1899
1900/*!
1901 \enum Qt::HitTestAccuracy
1902
1903 This enum contains the types of accuracy that can be used by the
1904 QTextDocument class when testing for mouse clicks on text documents.
1905
1906 \value ExactHit The point at which input occurred must coincide
1907 exactly with input-sensitive parts of the document.
1908 \value FuzzyHit The point at which input occurred can lie close to
1909 input-sensitive parts of the document.
1910*/
1911
1912/*!
1913 \enum Qt::WhiteSpaceMode
1914
1915 This enum describes the types of whitespace mode that are used by
1916 the QTextDocument class to meet the requirements of different kinds
1917 of textual information.
1918
1919 \value WhiteSpaceNormal The whitespace mode used to display
1920 normal word wrapped text in paragraphs.
1921 \value WhiteSpacePre A preformatted text mode in which
1922 whitespace is reproduced exactly.
1923 \value WhiteSpaceNoWrap
1924
1925 \omitvalue WhiteSpaceModeUndefined
1926*/
1927
1928/*!
1929 \enum Qt::CheckState
1930
1931 This enum describes the state of checkable items, controls, and widgets.
1932
1933 \value Unchecked The item is unchecked.
1934 \value PartiallyChecked The item is partially checked. Items in hierarchical models
1935 may be partially checked if some, but not all, of their
1936 children are checked.
1937 \value Checked The item is checked.
1938
1939 \sa QCheckBox, Qt::ItemFlags, Qt::ItemDataRole
1940*/
1941
1942
1943/*!
1944 \enum Qt::ToolButtonStyle
1945
1946 The style of the tool button, describing how the button's text and
1947 icon should be displayed.
1948
1949 \value ToolButtonIconOnly Only display the icon.
1950 \value ToolButtonTextOnly Only display the text.
1951 \value ToolButtonTextBesideIcon The text appears beside the icon.
1952 \value ToolButtonTextUnderIcon The text appears under the icon.
1953 \value ToolButtonFollowStyle Follow the \l{QStyle::SH_ToolButtonStyle}{style}.
1954*/
1955
1956/*!
1957 \enum Qt::Corner
1958
1959 This enum type specifies a corner in a rectangle:
1960
1961 \value TopLeftCorner The top-left corner of the rectangle.
1962 \value TopRightCorner The top-right corner of the rectangle.
1963 \value BottomLeftCorner The bottom-left corner of the rectangle.
1964 \value BottomRightCorner The bottom-right corner of the rectangle.
1965*/
1966
1967/*!
1968 \enum Qt::Edge
1969
1970 This enum type specifies an edge in a rectangle:
1971
1972 \value TopEdge The top edge of the rectangle.
1973 \value LeftEdge The left edge of the rectangle.
1974 \value RightEdge The right edge of the rectangle.
1975 \value BottomEdge The bottom edge of the rectangle.
1976
1977 \since 5.1
1978*/
1979
1980/*!
1981 \enum Qt::ScrollBarPolicy
1982
1983 This enum type describes the various modes of QAbstractScrollArea's scroll
1984 bars.
1985
1986 \value ScrollBarAsNeeded QAbstractScrollArea shows a scroll bar when the
1987 content is too large to fit and not otherwise. This is the
1988 default.
1989
1990 \value ScrollBarAlwaysOff QAbstractScrollArea never shows a scroll bar.
1991
1992 \value ScrollBarAlwaysOn QAbstractScrollArea always shows a scroll bar. This
1993 property is ignored on systems with transient scroll bars (e.g., on Mac from
1994 version 10.7).
1995
1996 (The modes for the horizontal and vertical scroll bars are
1997 independent.)
1998*/
1999
2000/*!
2001 \enum Qt::ArrowType
2002
2003 \value NoArrow
2004 \value UpArrow
2005 \value DownArrow
2006 \value LeftArrow
2007 \value RightArrow
2008*/
2009
2010/*!
2011 \enum Qt::FocusReason
2012
2013 This enum specifies why the focus changed. It will be passed
2014 through QWidget::setFocus and can be retrieved in the QFocusEvent
2015 sent to the widget upon focus change.
2016
2017 \value MouseFocusReason A mouse action occurred.
2018 \value TabFocusReason The Tab key was pressed.
2019 \value BacktabFocusReason A Backtab occurred. The input for this may
2020 include the Shift or Control keys;
2021 e.g. Shift+Tab.
2022 \value ActiveWindowFocusReason The window system made this window either
2023 active or inactive.
2024 \value PopupFocusReason The application opened/closed a pop-up that
2025 grabbed/released the keyboard focus.
2026 \value ShortcutFocusReason The user typed a label's buddy shortcut
2027 \value MenuBarFocusReason The menu bar took focus.
2028 \value OtherFocusReason Another reason, usually application-specific.
2029
2030 \omitvalue NoFocusReason
2031
2032 \sa {Keyboard Focus in Widgets}
2033*/
2034
2035/*!
2036 \enum Qt::WindowState
2037
2038 \keyword window state
2039
2040 This enum type is used to specify the current state of a top-level
2041 window.
2042
2043 The states are
2044
2045 \value WindowNoState The window has no state set (in normal state).
2046 \value WindowMinimized The window is minimized (i.e. iconified).
2047 \value WindowMaximized The window is maximized with a frame around it.
2048 \value WindowFullScreen The window fills the entire screen without any frame around it.
2049 \value WindowActive The window is the active window, i.e. it has keyboard focus.
2050
2051*/
2052
2053/*!
2054 \enum Qt::ApplicationState
2055
2056 \keyword application state
2057
2058 This enum type is used to specify the current state of the application.
2059
2060 The states are
2061
2062 \value ApplicationSuspended The application is about to suspend. When entering this state, the
2063 application should save its state, cease all activities, and be
2064 prepared for code execution to stop. While suspended, the
2065 application can be killed at any time without further warnings
2066 (e.g. when low memory forces the OS to purge suspended applications).
2067 \value ApplicationHidden The application is hidden and runs in the background. This
2068 is the normal state for applications that need to do background
2069 processing, like playing music, while the user interacts with
2070 other applications. The application should free up all graphical
2071 resources when entering this state.
2072 \value ApplicationInactive The application is visible, but not selected to be in front.
2073 On desktop platforms, this typically means that the user
2074 activated another application. On mobile platforms, it is
2075 more common to enter this state when the OS is interrupting
2076 the user with e.g. incoming calls or SMS-messages.
2077 While in this state, consider reducing CPU-intensive tasks.
2078 \value ApplicationActive The application is visible and selected to be in front.
2079
2080 \since 5.1
2081*/
2082
2083/*!
2084 \enum Qt::ScreenOrientation
2085
2086 This enum type specifies the various orientations a screen might have.
2087
2088 \value PrimaryOrientation The display's primary orientation.
2089 \value LandscapeOrientation Landscape orientation, display width is greater than display height.
2090 \value PortraitOrientation Portrait orientation, display height is greater than display width,
2091 rotated 90 degree clockwise relative to landscape.
2092 \value InvertedLandscapeOrientation Inverted landscape orientation, rotated 180 degrees relative to landscape.
2093 \value InvertedPortraitOrientation Inverted portrait orientation, rotated 180 degrees relative to portrait.
2094*/
2095
2096/*!
2097 \enum Qt::ContextMenuPolicy
2098
2099 This enum type defines the various policies a widget can have with
2100 respect to showing a context menu.
2101
2102 \value NoContextMenu the widget does not feature a context menu,
2103 context menu handling is deferred to the widget's parent.
2104 \value PreventContextMenu the widget does not feature a context
2105 menu, and in contrast to \c NoContextMenu, the handling is \e not
2106 deferred to the widget's parent. This means that all right mouse
2107 button events are guaranteed to be delivered to the widget itself
2108 through QWidget::mousePressEvent(), and QWidget::mouseReleaseEvent().
2109 \value DefaultContextMenu the widget's QWidget::contextMenuEvent() handler is called.
2110 \value ActionsContextMenu the widget displays its QWidget::actions() as context menu.
2111 \value CustomContextMenu the widget emits the QWidget::customContextMenuRequested() signal.
2112*/
2113
2114/*!
2115 \enum Qt::ContextMenuTrigger
2116 \since 6.8
2117
2118 This enum type defines the mouse event used to trigger a context menu event.
2119
2120 \value Press context menu on mouse press event, default on UNIX systems.
2121 \value Release context menu on mouse release event, default on Windows.
2122
2123 \sa QStyleHints::contextMenuTrigger
2124*/
2125
2126/*!
2127 \enum Qt::FocusPolicy
2128
2129 This enum type defines the various policies a widget can have with
2130 respect to acquiring keyboard focus.
2131
2132 \value TabFocus the widget accepts focus by tabbing.
2133 \value ClickFocus the widget accepts focus by clicking.
2134 \value StrongFocus the widget accepts focus by both tabbing
2135 and clicking. On \macos this will also
2136 be indicate that the widget accepts tab focus
2137 when in 'Text/List focus mode'.
2138 \value WheelFocus like Qt::StrongFocus plus the widget accepts
2139 focus by using the mouse wheel.
2140 \value NoFocus the widget does not accept focus.
2141
2142*/
2143
2144/*!
2145 \enum Qt::TabFocusBehavior
2146 \since 5.5
2147
2148 This enum type provides different focus behaviors for tab navigation.
2149
2150 \value NoTabFocus iterate nothing.
2151 \value TabFocusTextControls iterate text controls and widgets.
2152 \value TabFocusListControls iterate list controls and widgets.
2153 \value TabFocusAllControls iterate all controls and widgets.
2154
2155*/
2156
2157/*!
2158 \enum Qt::ShortcutContext
2159
2160 For a QEvent::Shortcut event to occur, the shortcut's key sequence
2161 must be entered by the user in a context where the shortcut is
2162 active. The possible contexts are these:
2163
2164 \value WidgetShortcut The shortcut is active when its
2165 parent widget has focus.
2166 \value WidgetWithChildrenShortcut The shortcut is active
2167 when its parent widget, or any of its children has focus.
2168 Children which are top-level widgets, except pop-ups, are
2169 not affected by this shortcut context.
2170 \value WindowShortcut The shortcut is active when its
2171 parent widget is a logical subwidget of the
2172 active top-level window.
2173 \value ApplicationShortcut The shortcut is active when one of
2174 the applications windows are active.
2175*/
2176
2177/*!
2178 \enum Qt::WindowType
2179
2180 \keyword window flag
2181
2182 This enum type is used to specify various window-system properties
2183 for the widget. They are fairly unusual but necessary in a few
2184 cases. Some of these flags depend on whether the underlying window
2185 manager supports them.
2186
2187 The main types are
2188
2189 \value Widget This is the default type for QWidget. Widgets of
2190 this type are child widgets if they have a parent,
2191 and independent windows if they have no parent.
2192 See also Qt::Window and Qt::SubWindow.
2193
2194 \value Window Indicates that the widget is a window, usually
2195 with a window system frame and a title bar,
2196 irrespective of whether the widget has a parent or
2197 not. Note that it is not possible to unset this
2198 flag if the widget does not have a parent.
2199
2200 \value Dialog Indicates that the widget is a window that should
2201 be decorated as a dialog (i.e., typically no
2202 maximize or minimize buttons in the title bar).
2203 This is the default type for QDialog. If you want
2204 to use it as a modal dialog, it should be launched
2205 from another window, or have a parent and used
2206 with the QWidget::windowModality property. If you make
2207 it modal, the dialog will prevent other top-level
2208 windows in the application from getting any input.
2209 We refer to a top-level window that has a parent
2210 as a \e secondary window.
2211
2212 \value Sheet Indicates that the window is a sheet on \macos. Since
2213 using a sheet implies window modality, the recommended
2214 way is to use QWidget::setWindowModality(), or
2215 QDialog::open(), instead.
2216
2217 \value Drawer Indicates that the widget is a drawer on \macos.
2218 This feature is obsolete. Setting the flag
2219 has no effect.
2220
2221 \value Popup Indicates that the widget is a pop-up top-level
2222 window, i.e. that it is modal, but has a window
2223 system frame appropriate for pop-up menus.
2224
2225 \value Tool Indicates that the widget is a tool window. A tool
2226 window is often a small window with a smaller than
2227 usual title bar and decoration, typically used for
2228 collections of tool buttons. If there is a parent,
2229 the tool window will always be kept on top of it.
2230 If there isn't a parent, you may consider using
2231 Qt::WindowStaysOnTopHint as well. If the window
2232 system supports it, a tool window can be decorated
2233 with a somewhat lighter frame. It can also be
2234 combined with Qt::FramelessWindowHint.
2235 On \macos, tool windows correspond to the
2236 \l{https://developer.apple.com/documentation/appkit/nspanel}{NSPanel}
2237 class of windows. This means that the window lives on a
2238 level above normal windows making it impossible to put a normal
2239 window on top of it. By default, tool windows will disappear
2240 when the application is inactive. This can be controlled by
2241 the Qt::WA_MacAlwaysShowToolWindow attribute.
2242
2243 \value ToolTip Indicates that the widget is a tooltip. This is
2244 used internally to implement
2245 \l{QWidget::toolTip}{tooltips}.
2246
2247 \value SplashScreen Indicates that the window is a splash screen.
2248 This is the default type for QSplashScreen.
2249
2250 \omitvalue Desktop Indicates that this widget is the desktop.
2251
2252 \value SubWindow Indicates that this widget is a sub-window, such
2253 as a QMdiSubWindow widget.
2254
2255 \value ForeignWindow Indicates that this window object is a handle
2256 representing a native platform window created by
2257 another process or by manually using native code.
2258
2259 \value CoverWindow Indicates that the window represents a cover window,
2260 which is shown when the application is minimized on
2261 some platforms.
2262
2263 There are also a number of flags which you can use to customize
2264 the appearance of top-level windows. These have no effect on other
2265 windows:
2266
2267 \value MSWindowsFixedSizeDialogHint Gives the window a thin dialog border on Windows.
2268 This style is traditionally used for fixed-size dialogs.
2269
2270 \note The use of this flag is not recommended in multi-monitor
2271 environments. This is because the system will enforce that the window
2272 maintains its native size when moving it across screens. This is
2273 particularly undesirable when using monitors with different
2274 resolutions.
2275
2276 \value MSWindowsOwnDC Gives the window its own display
2277 context on Windows.
2278
2279 \value BypassWindowManagerHint This flag can be used to indicate to the platform plugin
2280 that "all" window manager protocols should be disabled. This flag will behave
2281 different depending on what operating system the application is running on and
2282 what window manager is running. The flag can be used to get a native window
2283 with no configuration set.
2284
2285 \value X11BypassWindowManagerHint Bypass the window
2286 manager completely. This results in a borderless window
2287 that is not managed at all (i.e., no keyboard input unless
2288 you call QWidget::activateWindow() manually).
2289
2290 \value FramelessWindowHint Produces a borderless window.
2291
2292 On X11, the result of the flag is dependent on the window manager and its
2293 ability to understand Motif and/or NETWM hints. Most existing
2294 modern window managers can handle this.
2295
2296 \note If the window manager relies on the frame to interactively manipulate
2297 the window, the user can no longer move or resize the window via the window
2298 system, but this side effect should not be relied on. To produce a fixed
2299 size window that can not be resized, please set QWindow::setMinimumSize()
2300 and QWindow::setMaximumSize() to the same size.
2301
2302 \value NoDropShadowWindowHint Disables window drop shadow on supporting platforms.
2303
2304 The \c CustomizeWindowHint flag is used to enable customization of
2305 the window controls. This flag must be set to allow the \c
2306 WindowTitleHint, \c WindowSystemMenuHint, \c
2307 WindowMinimizeButtonHint, \c WindowMaximizeButtonHint and \c
2308 WindowCloseButtonHint flags to be changed.
2309
2310 \value CustomizeWindowHint Turns off the default window title hints.
2311
2312 \value WindowTitleHint Gives the window a title bar.
2313
2314 \value WindowSystemMenuHint Adds a window system menu, and
2315 possibly a close button (for example on Mac). If you need to hide
2316 or show a close button, it is more portable to use \c
2317 WindowCloseButtonHint.
2318
2319 \value WindowMinimizeButtonHint Adds a minimize button. On
2320 some platforms this implies Qt::WindowSystemMenuHint for it to work.
2321
2322 \note On many Wayland-based systems, button hints are not supported for
2323 server-side decorations.
2324
2325 \value WindowMaximizeButtonHint Adds a maximize button. On
2326 some platforms this implies Qt::WindowSystemMenuHint for it to work.
2327
2328 \note On many Wayland-based systems, button hints are not supported for
2329 server-side decorations.
2330
2331 \value WindowMinMaxButtonsHint Adds a minimize and a maximize
2332 button. On some platforms this implies Qt::WindowSystemMenuHint for it to work.
2333
2334 \note On many Wayland-based systems, button hints are not supported for
2335 server-side decorations.
2336
2337 \value WindowCloseButtonHint Adds a close button. On
2338 some platforms this implies Qt::WindowSystemMenuHint for it
2339 to work.
2340
2341 \note On many Wayland-based systems, button hints are not supported for
2342 server-side decorations.
2343
2344 \value WindowContextHelpButtonHint Adds a context help button to dialogs.
2345 On some platforms this implies Qt::WindowSystemMenuHint for it to work.
2346
2347 \omitvalue MacWindowToolBarButtonHint
2348
2349 \value WindowFullscreenButtonHint On \macos adds a fullscreen button.
2350
2351 \value BypassGraphicsProxyWidget Prevents the window and its children from
2352 automatically embedding themselves into a QGraphicsProxyWidget if the
2353 parent widget is already embedded. You can set this flag if you
2354 want your widget to always be a toplevel widget on the desktop,
2355 regardless of whether the parent widget is embedded in a scene or
2356 not.
2357
2358 \value WindowShadeButtonHint Adds a shade button in place of the minimize
2359 button if the underlying window manager supports it.
2360
2361 \value WindowStaysOnTopHint Informs the window system that the
2362 window should stay on top of all other windows. Note that
2363 on some window managers on X11 you also have to pass
2364 Qt::X11BypassWindowManagerHint for this flag to work
2365 correctly.
2366
2367 \value WindowStaysOnBottomHint Informs the window system that the
2368 window should stay on bottom of all other windows.
2369
2370 \note On X11, this hint will work only in window managers
2371 that support _NET_WM_STATE_BELOW atom. If a window always
2372 on the bottom has a parent, the parent will also be left on
2373 the bottom. This window hint is currently not implemented
2374 for \macos.
2375
2376 \note On Windows, this will work only for frameless or
2377 full-screen windows.
2378
2379 \value WindowTransparentForInput Informs the window system that this window
2380 is used only for output (displaying something) and does not take input.
2381 Therefore input events should pass through as if it wasn't there.
2382
2383 \value WindowOverridesSystemGestures Informs the window system that this window
2384 implements its own set of gestures and that system level gestures, like for
2385 instance three-finger desktop switching, should be disabled.
2386
2387 \value WindowDoesNotAcceptFocus Informs the window system that this window should
2388 not receive the input focus.
2389
2390 \note On Windows, this prevents the window from appearing in the taskbar.
2391
2392 \value MaximizeUsingFullscreenGeometryHint Deprecated alias for Qt::ExpandedClientAreaHint
2393
2394 \value [since 6.9] ExpandedClientAreaHint Requests that the window's client area is
2395 expanded to areas where it might be obscured by, or conflicting with other UI
2396 elements, such as the window's titlebar controls or other system UIs. The
2397 window's \l{QWindow::safeAreaMargins()}{safe area margins} will reflect any
2398 areas that may have conflicting UI elements.
2399
2400 \value [since 6.9] NoTitleBarBackgroundHint Requests that the window's title bar is drawn
2401 without a background color. This flag is useful in combination with
2402 Qt::ExpandedClientAreaHint, to give the perception that the window's
2403 client area seamlessly blends with the titlebar area and controls.
2404
2405 \value WindowType_Mask A mask for extracting the window type
2406 part of the window flags.
2407
2408 \sa QWidget::windowFlags, {Window Flags Example}
2409*/
2410
2411/*!
2412 \enum Qt::FindChildOption
2413
2414 \value FindDirectChildrenOnly Looks only at the direct children of the object.
2415 \value FindChildrenRecursively Looks at all children of the object (recursive search).
2416*/
2417
2418/*!
2419 \enum Qt::DropAction
2420
2421 \value CopyAction Copy the data to the target.
2422 \value MoveAction Move the data from the source to the target.
2423 \value LinkAction Create a link from the source to the target.
2424 \value ActionMask
2425 \value IgnoreAction Ignore the action (do nothing with the data).
2426 \value TargetMoveAction On Windows, this value is used when the ownership of the D&D data
2427 should be taken over by the target application,
2428 i.e., the source application should not delete
2429 the data.
2430 On X11 this value is used to do a move.
2431 TargetMoveAction is not used on the Mac.
2432*/
2433
2434/*!
2435 \enum Qt::SortOrder
2436
2437 This enum describes how the items in a widget are sorted.
2438
2439 \value AscendingOrder The items are sorted ascending e.g. starts with
2440 'AAA' ends with 'ZZZ' in Latin-1 locales
2441
2442 \value DescendingOrder The items are sorted descending e.g. starts with
2443 'ZZZ' ends with 'AAA' in Latin-1 locales
2444*/
2445
2446/*!
2447 \enum Qt::SplitBehaviorFlags
2448 \since 5.14
2449
2450 This enum specifies how the QString::split() functions should behave with
2451 respect to empty strings.
2452
2453 \value KeepEmptyParts If a field is empty, keep it in the result.
2454 \value SkipEmptyParts If a field is empty, don't include it in the result.
2455
2456 \sa QString::split()
2457*/
2458
2459/*!
2460 \enum Qt::ClipOperation
2461
2462 \value NoClip This operation turns clipping off.
2463
2464 \value ReplaceClip Replaces the current clip path/rect/region with
2465 the one supplied in the function call.
2466
2467 \value IntersectClip Intersects the current clip path/rect/region
2468 with the one supplied in the function call.
2469*/
2470
2471/*!
2472 \enum Qt::ItemSelectionMode
2473
2474 This enum is used in QGraphicsItem, QGraphicsScene and QGraphicsView to
2475 specify how items are selected, or how to determine if shapes and items
2476 collide.
2477
2478 \value ContainsItemShape The output list contains only items whose
2479 \l{QGraphicsItem::shape()}{shape} is fully contained inside the
2480 selection area. Items that intersect with the area's outline are
2481 not included.
2482
2483 \value IntersectsItemShape The output list contains both items whose
2484 \l{QGraphicsItem::shape()}{shape} is fully contained inside the
2485 selection area, and items that intersect with the area's
2486 outline. This is a common mode for rubber band selection.
2487
2488 \value ContainsItemBoundingRect The output list contains only items whose
2489 \l{QGraphicsItem::boundingRect()}{bounding rectangle} is fully
2490 contained inside the selection area. Items that intersect with the
2491 area's outline are not included.
2492
2493 \value IntersectsItemBoundingRect The output list contains both items
2494 whose \l{QGraphicsItem::boundingRect()}{bounding rectangle} is
2495 fully contained inside the selection area, and items that intersect
2496 with the area's outline. This method is commonly used for
2497 determining areas that need redrawing.
2498
2499 \sa QGraphicsScene::items(), QGraphicsScene::collidingItems(),
2500 QGraphicsView::items(), QGraphicsItem::collidesWithItem(),
2501 QGraphicsItem::collidesWithPath()
2502*/
2503
2504/*!
2505 \enum Qt::ItemSelectionOperation
2506
2507 This enum is used in QGraphicsScene to specify what to do with currently selected
2508 items when setting a selection area.
2509
2510 \value ReplaceSelection The currently selected items are replaced by items
2511 in the selection area.
2512
2513 \value AddToSelection The items in the selection area are added to the currently
2514 selected items.
2515
2516 \sa QGraphicsScene::setSelectionArea()
2517*/
2518
2519/*!
2520 \enum Qt::FillRule
2521
2522 Specifies which method should be used to fill the paths and polygons.
2523
2524 \value OddEvenFill Specifies that the region is filled using the
2525 odd even fill rule. With this rule, we determine whether a point
2526 is inside the shape by using the following method.
2527 Draw a horizontal line from the point to a location outside the shape,
2528 and count the number of intersections. If the number of intersections
2529 is an odd number, the point is inside the shape. This mode is the
2530 default.
2531
2532 \value WindingFill Specifies that the region is filled using the
2533 non zero winding rule. With this rule, we determine whether a
2534 point is inside the shape by using the following method.
2535 Draw a horizontal line from the point to a location outside the shape.
2536 Determine whether the direction of the line at each intersection point
2537 is up or down. The winding number is determined by summing the
2538 direction of each intersection. If the number is non zero, the point
2539 is inside the shape. This fill mode can also in most cases be considered
2540 as the intersection of closed shapes.
2541*/
2542
2543/*!
2544 \enum Qt::TextFormat
2545
2546 This enum is used in widgets that can display both plain text and
2547 rich text, for example QLabel. It is used for deciding whether a text
2548 string should be interpreted as one or the other. This is normally
2549 done by passing one of the enum values to a QStaticText::setTextFormat()
2550 function.
2551
2552 \value PlainText The text string is interpreted as a plain text
2553 string.
2554
2555 \value RichText The text string is interpreted as a rich text
2556 string. See \l {Supported HTML Subset} for the definition
2557 of rich text.
2558
2559 \value AutoText The text string is interpreted as for
2560 Qt::RichText if Qt::mightBeRichText() returns \c true, otherwise
2561 as Qt::PlainText.
2562
2563 \value MarkdownText The text string is interpreted as Markdown-formatted text.
2564 This enum value was added in Qt 5.14.
2565*/
2566
2567/*!
2568 \enum Qt::CursorShape
2569
2570 This enum type defines the various cursors that can be used.
2571
2572 The standard arrow cursor is the default for widgets in a normal state.
2573
2574 \value ArrowCursor \inlineimage cursor-arrow.png {Arrow cursor}
2575 The standard arrow cursor.
2576 \value UpArrowCursor \inlineimage cursor-uparrow.png {Up arrow cursor}
2577 An arrow pointing upwards toward the top of the screen.
2578 \value CrossCursor \inlineimage cursor-cross.png {Cross cursor}
2579 A crosshair cursor, typically used to help the
2580 user accurately select a point on the screen.
2581 \value WaitCursor \inlineimage cursor-wait.png {Wait cursor}
2582 An hourglass or watch cursor, usually shown during
2583 operations that prevent the user from interacting with
2584 the application.
2585 \value IBeamCursor \inlineimage cursor-ibeam.png {I-beam cursor}
2586 A caret or ibeam cursor, indicating that a widget can
2587 accept and display text input.
2588 \value SizeVerCursor \inlineimage cursor-sizev.png {Vertical resize cursor}
2589 A cursor used for elements that are used to vertically
2590 resize top-level windows.
2591 \value SizeHorCursor \inlineimage cursor-sizeh.png {Horizontal resize cursor}
2592 A cursor used for elements that are used to horizontally
2593 resize top-level windows.
2594 \value SizeBDiagCursor \inlineimage cursor-sizeb.png {Diagonal resize cursor}
2595 A cursor used for elements that are used to diagonally
2596 resize top-level windows at their top-right and
2597 bottom-left corners.
2598 \value SizeFDiagCursor \inlineimage cursor-sizef.png {Diagonal resize cursor}
2599 A cursor used for elements that are used to diagonally
2600 resize top-level windows at their top-left and
2601 bottom-right corners.
2602 \value SizeAllCursor \inlineimage cursor-sizeall.png {Move cursor}
2603 A cursor used for elements that are used to resize
2604 top-level windows in any direction.
2605 \value BlankCursor A blank/invisible cursor, typically used when the cursor
2606 shape needs to be hidden.
2607 \value SplitVCursor \inlineimage cursor-vsplit.png {Vertical split cursor}
2608 A cursor used for vertical splitters, indicating that
2609 a handle can be dragged horizontally to adjust the use
2610 of available space.
2611 \value SplitHCursor \inlineimage cursor-hsplit.png {Horizontal split cursor}
2612 A cursor used for horizontal splitters, indicating that
2613 a handle can be dragged vertically to adjust the use
2614 of available space.
2615 \value PointingHandCursor \inlineimage cursor-hand.png {Pointing hand cursor}
2616 A pointing hand cursor that is typically used for
2617 clickable elements such as hyperlinks.
2618 \value ForbiddenCursor \inlineimage cursor-forbidden.png {Forbidden cursor}
2619 A slashed circle cursor, typically used during drag
2620 and drop operations to indicate that dragged content
2621 cannot be dropped on particular widgets or inside
2622 certain regions.
2623 \value OpenHandCursor \inlineimage cursor-openhand.png {Open hand cursor}
2624 A cursor representing an open hand, typically used to
2625 indicate that the area under the cursor is the visible
2626 part of a canvas that the user can click and drag in
2627 order to scroll around.
2628 \value ClosedHandCursor \inlineimage cursor-closedhand.png {Closed hand cursor}
2629 A cursor representing a closed hand, typically used to
2630 indicate that a dragging operation is in progress that
2631 involves scrolling.
2632 \value WhatsThisCursor \inlineimage cursor-whatsthis.png {What's this cursor}
2633 An arrow with a question mark, typically used to indicate
2634 the presence of What's This? help for a widget.
2635 \value BusyCursor \inlineimage cursor-busy.png {Busy cursor}
2636 An hourglass or watch cursor, usually shown during
2637 operations that allow the user to interact with
2638 the application while they are performed in the
2639 background.
2640 \value DragMoveCursor
2641 A cursor that is usually used when dragging an item.
2642 \value DragCopyCursor
2643 A cursor that is usually used when dragging an item
2644 to copy it.
2645 \value DragLinkCursor
2646 A cursor that is usually used when dragging an item
2647 to make a link to it.
2648
2649 \value BitmapCursor
2650 \omitvalue LastCursor
2651 \omitvalue CustomCursor
2652*/
2653
2654/*!
2655 \enum Qt::LayoutDirection
2656
2657 Specifies the direction of Qt's layouts and text handling.
2658
2659 \value LeftToRight Left-to-right layout.
2660 \value RightToLeft Right-to-left layout.
2661 \value LayoutDirectionAuto Automatic layout.
2662
2663 Right-to-left layouts are necessary for certain languages,
2664 notably Arabic and Hebrew.
2665
2666 LayoutDirectionAuto serves two purposes. When used in conjunction with widgets and layouts, it
2667 will imply to use the layout direction set on the parent widget or QApplication. This
2668 has the same effect as QWidget::unsetLayoutDirection().
2669
2670 When LayoutDirectionAuto is used in conjunction with text layouting, it will imply that the text
2671 directionality is determined from the content of the string to be layouted.
2672
2673 \sa QGuiApplication::setLayoutDirection(), QWidget::setLayoutDirection(), QTextOption::setTextDirection(), QString::isRightToLeft()
2674*/
2675
2676/*!
2677 \enum Qt::AnchorPoint
2678
2679 Specifies a side of a layout item that can be anchored. This is used by
2680 QGraphicsAnchorLayout.
2681
2682 \value AnchorLeft The left side of a layout item.
2683 \value AnchorHorizontalCenter A "virtual" side that is centered between the left and the
2684 right side of a layout item.
2685 \value AnchorRight The right side of a layout item.
2686 \value AnchorTop The top side of a layout item.
2687 \value AnchorVerticalCenter A "virtual" side that is centered between the top and the
2688 bottom side of a layout item.
2689 \value AnchorBottom The bottom side of a layout item.
2690
2691 \sa QGraphicsAnchorLayout
2692*/
2693
2694/*!
2695 \enum Qt::InputMethodHint
2696
2697 \value ImhNone No hints.
2698
2699 Flags that alter the behavior:
2700
2701 \value ImhHiddenText The input method should not show the characters while typing.
2702 This is automatically set when setting QLineEdit::echoMode to \c Password.
2703 Note that setting \c ImhHiddenText does not change the echo mode.
2704
2705 Note that Android IMEs deliberately only
2706 allow Latin/ASCII character input for password fields.
2707 \value ImhSensitiveData Typed text should not be stored by the active input method
2708 in any persistent storage like predictive user dictionary.
2709
2710 Note that the Qt Framework treats this as a visible password
2711 and in this case Android IMEs deliberately only
2712 allow Latin/ASCII character input.
2713 \value ImhNoAutoUppercase The input method should not try to automatically switch to upper case
2714 when a sentence ends.
2715 \value ImhPreferNumbers Numbers are preferred (but not required).
2716 \value ImhPreferUppercase Upper case letters are preferred (but not required).
2717 \value ImhPreferLowercase Lower case letters are preferred (but not required).
2718 \value ImhNoPredictiveText Do not use predictive text (i.e. dictionary lookup) while typing.
2719
2720 \value ImhDate The text editor functions as a date field.
2721 \value ImhTime The text editor functions as a time field.
2722 \value ImhPreferLatin Latin characters are preferred (but not required).
2723
2724 \value ImhMultiLine Multiple lines can be entered into the text field.
2725
2726 \value ImhNoEditMenu Do not use built-in edit menu. This flag was introduced in Qt 5.11.
2727 \value ImhNoTextHandles Do not use built-in text cursor and selection handles. This flag was introduced in Qt 5.11.
2728 \value [since 6.12] ImhNoFullscreen Do not use fullscreen input method.
2729
2730 Flags that restrict input (exclusive flags):
2731
2732 \value ImhDigitsOnly Only digits are allowed.
2733 \value [since 6.12] ImhDecimalNumbersOnly Only number input is allowed. This includes decimal point, but not negative numbers.
2734 \value ImhFormattedNumbersOnly Only number input is allowed. This includes decimal point and minus sign.
2735 \value ImhUppercaseOnly Only upper case letter input is allowed.
2736 \value ImhLowercaseOnly Only lower case letter input is allowed.
2737 \value ImhDialableCharactersOnly Only characters suitable for phone dialing are allowed.
2738 \value ImhEmailCharactersOnly Only characters suitable for email addresses are allowed.
2739 \value ImhUrlCharactersOnly Only characters suitable for URLs are allowed.
2740 \value ImhLatinOnly Only latin based input is allowed.
2741
2742 Masks:
2743
2744 \value ImhExclusiveInputMask This mask yields nonzero if any of the exclusive flags are used.
2745
2746 \note If several exclusive flags are OR-ed together, the resulting character set will
2747 consist of the union of the specified sets. For instance specifying \c ImhNumbersOnly and
2748 \c ImhUppercaseOnly would yield a set consisting of numbers and uppercase letters.
2749
2750 \sa QGraphicsItem::inputMethodHints()
2751*/
2752
2753/*!
2754 \enum Qt::InputMethodQuery
2755
2756 \value ImEnabled The widget accepts input method input.
2757 \value ImCursorRectangle The rectangle covering the area of the input cursor in widget coordinates.
2758 \value ImFont The currently used font for text input.
2759 \value ImCursorPosition The logical position of the cursor within the text surrounding the input area
2760 (see \c ImSurroundingText). The position does not incorporate the offset of
2761 the cursor within the preedit area, as controlled by QInputMethodEvent::Cursor.
2762 \value ImSurroundingText The plain text around the input area, for example the current paragraph.
2763 \value ImCurrentSelection The currently selected text.
2764 \value ImMaximumTextLength The maximum number of characters that the widget can hold. If there is no limit,
2765 QVariant::QVariant() is returned.
2766 \value ImAnchorPosition The position of the selection anchor. This may be less or greater than
2767 \c ImCursorPosition, depending on which side of selection the cursor is.
2768 If there is no selection, it returns the same as \c ImCursorPosition.
2769 \value ImHints The hints for input method on expected input. (See Qt::InputMethodHints)
2770 \value ImPreferredLanguage The preferred input language.
2771 \value ImPlatformData Platform specific data for input method.
2772 \value ImAbsolutePosition The logical position of the cursor within the entire document. The position does
2773 not incorporate the offset of the cursor within the preedit area, as controlled
2774 by QInputMethodEvent::Cursor.
2775 \value ImTextBeforeCursor The plain text before the cursor. The widget can decide how much text to return,
2776 but \b{must} not return an empty string unless the cursor is at the start of the document.
2777 \value ImTextAfterCursor The plain text after the cursor. The widget can decide how much text to return,
2778 but \b{must} not return an empty string unless the cursor is at the end of the document.
2779 \value ImEnterKeyType The Enter key type.
2780 \value ImAnchorRectangle The bounding rectangle of the selection anchor.
2781 This value was added in Qt 5.7.
2782 \value ImInputItemClipRectangle The actual exposed input item rectangle. Parts of the input item might be
2783 clipped. This value will take clipping into consideration and return the actual painted
2784 item rectangle. The rectangle is in widget coordinates.
2785 \value ImReadOnly The widget is read only. This value was added in Qt 6.2.
2786
2787 Masks:
2788
2789 \value ImQueryInput Commonly changed properties on input.
2790 \value ImQueryAll Query for all input method properties.
2791
2792 \sa QInputMethodQueryEvent
2793*/
2794
2795/*!
2796 \enum Qt::EnterKeyType
2797
2798 This can be used to alter the appearance of the Return key on an on-screen keyboard.
2799
2800 \note Not all of these values are supported on all platforms.
2801 For unsupported values the default key will be used instead.
2802
2803 \value EnterKeyDefault The default Enter key.
2804 This can either be a button closing the keyboard, or a Return button
2805 causing a new line in case of a multi-line input field.
2806 \value EnterKeyReturn Show a Return button that inserts a new line.
2807 The keyboard will not close when this button is pressed.
2808 \value EnterKeyDone Show a "Done" button.
2809 The keyboard will close when this button is pressed.
2810 \value EnterKeyGo Show a "Go" button.
2811 Typically used in an address bar when entering a URL; the keyboard
2812 will close when this button is pressed.
2813 \value EnterKeySend Show a "Send" button.
2814 The keyboard will close when this button is pressed.
2815 \value EnterKeySearch Show a "Search" button.
2816 The keyboard will close when this button is pressed.
2817 \value EnterKeyNext Show a "Next" button.
2818 Typically used in a form to allow navigating to the next input field;
2819 the keyboard will not close when this button is pressed.
2820 \value EnterKeyPrevious Show a "Previous" button.
2821 The keyboard will not close when this button is pressed.
2822
2823 \since 5.6
2824*/
2825
2826/*!
2827 \enum Qt::ItemDataRole
2828
2829 Each item in the model has a set of data elements associated with
2830 it, each with its own role. The roles are used by the view to indicate
2831 to the model which type of data it needs. Custom models should return
2832 data in these types.
2833
2834 The general purpose roles (and the associated types) are:
2835
2836 \value DisplayRole The key data to be rendered in the form of text. (QString)
2837 \value DecorationRole The data to be rendered as a decoration in the form
2838 of an icon. (QColor, QIcon or QPixmap)
2839 \value EditRole The data in a form suitable for editing in an
2840 editor. (QString)
2841 \value ToolTipRole The data displayed in the item's tooltip. (QString)
2842 \value StatusTipRole The data displayed in the status bar. (QString)
2843 \value WhatsThisRole The data displayed for the item in "What's This?"
2844 mode. (QString)
2845 \value SizeHintRole The size hint for the item that will be supplied
2846 to views. (QSize)
2847
2848 Roles describing appearance and meta data (with associated types):
2849
2850 \value FontRole The font used for items rendered with the default
2851 delegate. (QFont)
2852 \value TextAlignmentRole The alignment of the text for items rendered with the
2853 default delegate. (Qt::Alignment)
2854 \value BackgroundRole The background brush used for items rendered with
2855 the default delegate. (QBrush)
2856 \value ForegroundRole The foreground brush (text color, typically)
2857 used for items rendered with the default delegate.
2858 (QBrush)
2859 \value CheckStateRole This role is used to obtain the checked state of
2860 an item. (Qt::CheckState)
2861 \value InitialSortOrderRole This role is used to obtain the initial sort order
2862 of a header view section. (Qt::SortOrder).
2863
2864 Accessibility roles (with associated types):
2865
2866 \value AccessibleTextRole The text to be used by accessibility
2867 extensions and plugins, such as screen
2868 readers. (QString)
2869 \value AccessibleDescriptionRole A description of the item for accessibility
2870 purposes. (QString)
2871
2872 User roles:
2873
2874 \value UserRole The first role that can be used for application-specific purposes.
2875
2876 \omitvalue DisplayPropertyRole
2877 \omitvalue DecorationPropertyRole
2878 \omitvalue ToolTipPropertyRole
2879 \omitvalue StatusTipPropertyRole
2880 \omitvalue WhatsThisPropertyRole
2881 \omitvalue RangeModelDataRole
2882 \omitvalue RangeModelAdapterRole
2883 \omitvalue StandardItemFlagsRole
2884 \omitvalue FileInfoRole
2885 \omitvalue RemoteObjectsCacheRole
2886
2887 For user roles, it is up to the developer to decide which types to use and ensure that
2888 components use the correct types when accessing and setting data.
2889*/
2890
2891/*!
2892 \enum Qt::ItemFlag
2893
2894 This enum describes the properties of an item:
2895
2896 \value NoItemFlags It does not have any properties set.
2897 \value ItemIsSelectable It can be selected.
2898 \value ItemIsEditable It can be edited.
2899 \value ItemIsDragEnabled It can be dragged.
2900 \value ItemIsDropEnabled It can be used as a drop target.
2901 \value ItemIsUserCheckable It can be checked or unchecked by the user.
2902 \value ItemIsEnabled The user can interact with the item.
2903 \value ItemIsAutoTristate The item's state depends on the state of its children.
2904 This enables automatic management of the state of parent items in QTreeWidget
2905 (checked if all children are checked, unchecked if all children are unchecked,
2906 or partially checked if only some children are checked).
2907 \value ItemNeverHasChildren The item never has child items.
2908 This is used for optimization purposes only.
2909 \value ItemIsUserTristate The user can cycle through three separate states.
2910 This value was added in Qt 5.5.
2911
2912 Note that checkable items need to be given both a suitable set of flags
2913 and an initial state, indicating whether the item is checked or not.
2914 This is handled automatically for model/view components, but needs
2915 to be explicitly set for instances of QListWidgetItem, QTableWidgetItem,
2916 and QTreeWidgetItem.
2917
2918 Note that it is undefined behavior to reimplement QAbstractItemModel::hasChildren
2919 to return true for an index if that index has the Qt::ItemNeverHasChildren flag set.
2920
2921 \sa QAbstractItemModel
2922*/
2923
2924/*!
2925 \enum Qt::MatchFlag
2926
2927 This enum describes the type of matches that can be used when searching
2928 for items in a model.
2929
2930 \value MatchExactly Performs QVariant-based matching.
2931 \value MatchFixedString Performs string-based matching.
2932 String-based comparisons are case-insensitive unless the
2933 \c MatchCaseSensitive flag is also specified.
2934 \value MatchContains The search term is contained in the item.
2935 \value MatchStartsWith The search term matches the start of the item.
2936 \value MatchEndsWith The search term matches the end of the item.
2937 \value MatchCaseSensitive The search is case sensitive.
2938 \value MatchRegularExpression Performs string-based matching using a regular
2939 expression as the search term. Uses QRegularExpression.
2940 When using this flag, a QRegularExpression object can be passed as
2941 parameter and will directly be used to perform the search. The case
2942 sensitivity flag will be ignored as the QRegularExpression object is
2943 expected to be fully configured.
2944 This enum value was added in Qt 5.15.
2945 \value MatchWildcard Performs string-based matching using a string with
2946 wildcards as the search term.
2947 \value MatchWrap Perform a search that wraps around, so that when
2948 the search reaches the last item in the model, it begins again at
2949 the first item and continues until all items have been examined.
2950 \value MatchRecursive Searches the entire hierarchy.
2951 \omitvalue MatchTypeMask
2952
2953 \note Qt::MatchExactly, Qt::MatchContains, Qt::MatchStartsWith,
2954 Qt::MatchEndsWith, Qt::MatchRegularExpression, Qt::MatchWildcard, and
2955 Qt::MatchFixedString are mutually exclusive. The behavior achieved by
2956 setting several of them in a Qt::MatchFlags argument is undefined.
2957
2958 \sa QString::compare(), QRegularExpression
2959*/
2960
2961/*!
2962 \enum Qt::TextElideMode
2963
2964 This enum specifies where the ellipsis should appear when
2965 displaying texts that don't fit:
2966
2967 \value ElideLeft The ellipsis should appear at the beginning of the text.
2968 \value ElideRight The ellipsis should appear at the end of the text.
2969 \value ElideMiddle The ellipsis should appear in the middle of the text.
2970 \value ElideNone Ellipsis should NOT appear in the text. When passed to functions such as
2971 QFontMetrics::elidedText(), this will cause the full string to return unless
2972 the text contains multi-length variants. Elision in this case must be done
2973 by clipping to the component width.
2974
2975 Qt::ElideMiddle is normally the most appropriate choice for URLs (e.g.,
2976 "\l{http://bugreports.qt.io/browse/QTWEBSITE-13}{http://bugreports.qt.../QTWEBSITE-13/}"),
2977 whereas Qt::ElideRight is appropriate
2978 for other strings (e.g.,
2979 "\l{http://doc.qt.io/archives/qq/qq09-mac-deployment.html}{Deploying Applications on Ma...}").
2980
2981 \sa QAbstractItemView::textElideMode, QFontMetrics::elidedText(), AlignmentFlag, QTabBar::elideMode
2982*/
2983
2984/*!
2985 \enum Qt::WindowModality
2986
2987 \keyword modal
2988
2989 This enum specifies the behavior of a modal window. A modal window
2990 is one that blocks input to other windows. Note that windows that
2991 are children of a modal window are not blocked.
2992
2993 The values are:
2994 \value NonModal The window is not modal and does not block input to other windows.
2995 \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.
2996 \value ApplicationModal The window is modal to the application and blocks input to all windows.
2997
2998 \sa QWidget::windowModality, QDialog
2999*/
3000
3001/*!
3002 \enum Qt::TextInteractionFlag
3003
3004 This enum specifies how a text displaying widget reacts to user input.
3005
3006 \value NoTextInteraction No interaction with the text is possible.
3007 \value TextSelectableByMouse Text can be selected with the mouse and copied to the clipboard using
3008 a context menu or standard keyboard shortcuts.
3009 \value TextSelectableByKeyboard Text can be selected with the cursor keys on the keyboard. A text cursor is shown.
3010 \value LinksAccessibleByMouse Links can be highlighted and activated with the mouse.
3011 \value LinksAccessibleByKeyboard Links can be focused using tab and activated with enter.
3012 \value TextEditable The text is fully editable.
3013
3014 \value TextEditorInteraction The default for a text editor.
3015 \value TextBrowserInteraction The default for QTextBrowser.
3016*/
3017
3018/*!
3019 \enum Qt::MaskMode
3020
3021 This enum specifies the behavior of the
3022 QPixmap::createMaskFromColor() and QImage::createMaskFromColor()
3023 functions.
3024
3025 \value MaskInColor Creates a mask where all pixels matching the given color are opaque.
3026 \value MaskOutColor Creates a mask where all pixels matching the given color are transparent.
3027*/
3028
3029/*!
3030 \enum Qt::DockWidgetAreaSizes
3031 \internal
3032*/
3033
3034/*!
3035 \enum Qt::ToolBarAreaSizes
3036 \internal
3037*/
3038
3039/*!
3040 \enum Qt::EventPriority
3041
3042 This enum can be used to specify event priorities.
3043
3044 \value HighEventPriority Events with this priority are sent before
3045 events with NormalEventPriority or LowEventPriority.
3046
3047 \value NormalEventPriority Events with this priority are sent
3048 after events with HighEventPriority, but before events with
3049 LowEventPriority.
3050
3051 \value LowEventPriority Events with this priority are sent after
3052 events with HighEventPriority or NormalEventPriority.
3053
3054 Note that these values are provided purely for convenience, since
3055 event priorities can be any value between \c INT_MAX and \c
3056 INT_MIN, inclusive. For example, you can define custom priorities
3057 as being relative to each other:
3058
3059 \snippet code/doc_src_qnamespace.cpp 1
3060
3061 \sa QCoreApplication::postEvent()
3062*/
3063/*!
3064 \enum Qt::SizeHint
3065 \since 4.4
3066
3067 This enum is used by QGraphicsLayoutItem::sizeHint()
3068
3069 \value MinimumSize is used to specify the minimum size of a graphics layout item.
3070 \value PreferredSize is used to specify the preferred size of a graphics layout item.
3071 \value MaximumSize is used to specify the maximum size of a graphics layout item.
3072 \value MinimumDescent is used to specify the minimum descent of a text string in a graphics layout item.
3073 \omitvalue NSizeHints
3074
3075 \sa QGraphicsLayoutItem::sizeHint()
3076*/
3077
3078/*!
3079 \enum Qt::SizeMode
3080 \since 4.4
3081
3082 This enum is used by QPainter::drawRoundedRect() and QPainterPath::addRoundedRect()
3083 functions to specify the radii of rectangle corners with respect to the dimensions
3084 of the bounding rectangles specified.
3085
3086 \value AbsoluteSize Specifies the size using absolute measurements.
3087 \value RelativeSize Specifies the size relative to the bounding rectangle,
3088 typically using percentage measurements.
3089*/
3090
3091/*!
3092 \enum Qt::WindowFrameSection
3093 \since 4.4
3094
3095 This enum is used to describe parts of a window frame. It is returned by
3096 QGraphicsWidget::windowFrameSectionAt() to describe what section of the window
3097 frame is under the mouse.
3098
3099 \value NoSection
3100 \value LeftSection
3101 \value TopLeftSection
3102 \value TopSection
3103 \value TopRightSection
3104 \value RightSection
3105 \value BottomRightSection
3106 \value BottomSection
3107 \value BottomLeftSection
3108 \value TitleBarArea
3109
3110 \sa QGraphicsWidget::windowFrameEvent()
3111 \sa QGraphicsWidget::paintWindowFrame()
3112 \sa QGraphicsWidget::windowFrameSectionAt()
3113
3114*/
3115
3116/*!
3117 \enum Qt::TileRule
3118 \since 4.6
3119
3120 This enum describes how to repeat or stretch the parts of an image
3121 when drawing.
3122
3123 \value StretchTile Scale the image to fit to the available area.
3124
3125 \value RepeatTile Repeat the image until there is no more space. May
3126 crop the last image.
3127
3128 \value RoundTile Similar to Repeat, but scales the image down to
3129 ensure that the last tile is not cropped.
3130*/
3131
3132/*!
3133 \enum Qt::Initialization
3134 \internal
3135*/
3136
3137/*!
3138 \enum Qt::Disambiguated_t
3139 \internal
3140*/
3141
3142/*!
3143 \enum Qt::CoordinateSystem
3144 \since 4.6
3145
3146 This enum specifies the coordinate system.
3147
3148 \value DeviceCoordinates Coordinates are relative to the top-left corner
3149 of the object's paint device.
3150
3151 \value LogicalCoordinates Coordinates are relative to the top-left corner
3152 of the object.
3153*/
3154
3155/*! \enum Qt::TouchPointState
3156 \since 4.6
3157
3158 This enum represents the state of a touch point at the time a
3159 QTouchEvent occurred.
3160
3161 \value TouchPointUnknownState The state of the touch point is not known.
3162 \value TouchPointPressed The touch point is now pressed.
3163 \value TouchPointMoved The touch point moved.
3164 \value TouchPointStationary The touch point did not move.
3165 \value TouchPointReleased The touch point was released.
3166*/
3167
3168/*!
3169 \enum Qt::GestureState
3170 \since 4.6
3171
3172 This enum type describes the state of a gesture.
3173
3174 \value NoGesture No gesture has been detected.
3175 \value GestureStarted A continuous gesture has started.
3176 \value GestureUpdated A gesture continues.
3177 \value GestureFinished A gesture has finished.
3178 \value GestureCanceled A gesture was canceled.
3179
3180 \sa QGesture
3181*/
3182
3183/*!
3184 \enum Qt::GestureType
3185 \since 4.6
3186
3187 This enum type describes the standard gestures.
3188
3189 \value TapGesture A Tap gesture.
3190 \value TapAndHoldGesture A Tap-And-Hold (Long-Tap) gesture.
3191 \value PanGesture A Pan gesture.
3192 \value PinchGesture A Pinch gesture.
3193 \value SwipeGesture A Swipe gesture.
3194 \value CustomGesture A flag that can be used to test if the gesture is a
3195 user-defined gesture ID.
3196 \omitvalue LastGestureType
3197
3198 User-defined gestures are registered with the
3199 QGestureRecognizer::registerRecognizer() function which generates a custom
3200 gesture ID with the Qt::CustomGesture flag set.
3201
3202 \sa QGesture, QWidget::grabGesture(), QGraphicsObject::grabGesture()
3203*/
3204
3205/*!
3206 \enum Qt::GestureFlag
3207 \since 4.6
3208
3209 This enum type describes additional flags that can be used when subscribing
3210 to a gesture.
3211
3212 \value DontStartGestureOnChildren By default gestures can start on the
3213 widget or over any of its children. Use this flag to disable this and allow
3214 a gesture to start on the widget only.
3215
3216 \value ReceivePartialGestures Allows any ignored gesture events to be
3217 propagated to parent widgets which have specified this hint. By default
3218 only gestures that are in the Qt::GestureStarted state are propagated and
3219 the widget always gets the full gesture sequence starting with a gesture in
3220 the Qt::GestureStarted state and ending with a gesture in the
3221 Qt::GestureFinished or Qt::GestureCanceled states.
3222
3223 \value [since 4.7] IgnoredGesturesPropagateToParent Allows fine-tuning of
3224 gesture event propagation. By setting the flag when
3225 \l{QGraphicsObject::grabGesture()}{grabbing} a gesture all ignored partial
3226 gestures will propagate to their parent items.
3227
3228 \sa QWidget::grabGesture(), QGraphicsObject::grabGesture()
3229*/
3230
3231/*!
3232 \enum Qt::NativeGestureType
3233 \since 5.2
3234
3235 This enum returns the gesture type.
3236
3237 \value BeginNativeGesture Sent before gesture event stream.
3238 \value EndNativeGesture Sent after gesture event stream.
3239 \value PanNativeGesture Specifies the displacement delta in pixels.
3240 \value ZoomNativeGesture Specifies the magnification delta in percent.
3241 \value SmartZoomNativeGesture Boolean magnification state.
3242 \value RotateNativeGesture Specifies the rotation delta in degrees.
3243 \value SwipeNativeGesture Sent after a swipe movement.
3244
3245*/
3246
3247/*!
3248 \enum Qt::NavigationMode
3249 \deprecated [6.12]
3250 \since 4.6
3251
3252 This enum type describes the mode for moving focus.
3253
3254 \value NavigationModeNone Only the touch screen is used.
3255 \value NavigationModeKeypadTabOrder Qt::Key_Up and Qt::Key_Down are used to change focus.
3256 \value NavigationModeKeypadDirectional Qt::Key_Up, Qt::Key_Down, Qt::Key_Left and Qt::Key_Right are used to change focus.
3257 \value NavigationModeCursorAuto The mouse cursor is used to change focus,
3258 it is displayed only on non touchscreen devices.
3259 The keypad is used to implement a virtual cursor, unless
3260 the device has an analog mouse type of input device (e.g. touchpad).
3261 This is the recommended setting for an application such as a web browser that
3262 needs pointer control on both touch and non-touch devices.
3263 \value NavigationModeCursorForceVisible The mouse cursor is used to change focus,
3264 it is displayed regardless of device type.
3265 The keypad is used to implement a virtual cursor, unless
3266 the device has an analog mouse type of input device (e.g. touchpad)
3267
3268 \note The Qt API that used this enum (\c QApplication::setNavigationMode(), \c QApplication::navigationMode())
3269 was deprecated in Qt 5.14 and removed in Qt 6.12.
3270*/
3271
3272/*!
3273 \enum Qt::CursorMoveStyle
3274
3275 This enum describes the movement style available to text cursors. The options
3276 are:
3277
3278 \value LogicalMoveStyle Within a left-to-right text block, decrease cursor
3279 position when pressing left arrow key, increase cursor position when pressing
3280 the right arrow key. If the text block is right-to-left, the opposite behavior
3281 applies.
3282 \value VisualMoveStyle Pressing the left arrow key will always cause the cursor
3283 to move left, regardless of the text's writing direction. Pressing the right
3284 arrow key will always cause the cursor to move right.
3285*/
3286
3287/*!
3288 \enum Qt::TimerType
3289
3290 The timer type indicates how accurate a timer can be.
3291
3292 \value PreciseTimer Precise timers try to keep millisecond accuracy
3293 \value CoarseTimer Coarse timers try to keep accuracy within 5% of the desired interval
3294 \value VeryCoarseTimer Very coarse timers only keep full second accuracy
3295
3296 On UNIX (including Linux, \macos, and iOS), Qt will keep millisecond accuracy
3297 for Qt::PreciseTimer. For Qt::CoarseTimer, the interval will be adjusted up
3298 to 5% to align the timer with other timers that are expected to fire at or
3299 around the same time. The objective is to make most timers wake up at the
3300 same time, thereby reducing CPU wakeups and power consumption.
3301
3302 On Windows, Qt will use Windows's Multimedia timer facility (if available)
3303 for Qt::PreciseTimer and normal Windows timers for Qt::CoarseTimer and
3304 Qt::VeryCoarseTimer.
3305
3306 On all platforms, the interval for Qt::VeryCoarseTimer is rounded to the
3307 nearest full second (e.g. an interval of 23500ms will be rounded to
3308 24000ms, and 20300ms to 20000ms).
3309*/
3310
3311/*!
3312 \enum Qt::TimerId
3313 \since 6.8
3314 \relates QObject
3315 \relates QTimer
3316 \relates QChronoTimer
3317
3318 This is used to represent timer IDs (for example, QTimer and QChronoTimer).
3319 The underlying type is \c int. You can use \l qToUnderlying() to convert
3320 Qt::TimerId to \c int.
3321
3322 \value Invalid Represents a no-op timer ID; its usage depends on the
3323 context, for example, this is the value returned by QObject::startTimer()
3324 to indicate it failed to start a timer; whereas QChronoTimer::id() returns
3325 this value when the timer is inactive, that is, \c timer.isActive()
3326 returns \c false.
3327
3328 \sa QTimer::id(), QChronoTimer::id(), QObject::startTimer()
3329*/
3330
3331/*!
3332 \enum Qt::ScrollPhase
3333 \since 5.2
3334
3335 This enum describes the phase of scrolling.
3336
3337 \value NoScrollPhase The input device doesn't support scroll phase.
3338 This value was introduced in Qt 5.7.
3339
3340 \value ScrollBegin Scrolling is about to begin, but the scrolling
3341 distance did not yet change.
3342
3343 \value ScrollUpdate The scrolling distance has changed (default).
3344
3345 \value ScrollEnd Scrolling has ended, and the scrolling distance
3346 did not change anymore.
3347
3348 \value ScrollMomentum The user no longer touches the input device,
3349 but scrolling continues due to scroll momentum.
3350 This value was introduced in Qt 5.12.
3351*/
3352
3353/*!
3354 \enum Qt::MouseEventSource
3355 \since 5.3
3356
3357 This enum describes the source of a mouse event and can be useful
3358 to determine if the event is an artificial mouse event originating
3359 from another device such as a touchscreen.
3360
3361 \value MouseEventNotSynthesized The most common value. On
3362 platforms where such information is available this value indicates
3363 that the event was generated in response to a genuine mouse event
3364 in the system.
3365
3366 \value MouseEventSynthesizedBySystem Indicates that the mouse
3367 event was synthesized from a touch event by the platform.
3368
3369 \value MouseEventSynthesizedByQt Indicates that the mouse event was
3370 synthesized from an unhandled touch event by Qt.
3371
3372 \value MouseEventSynthesizedByApplication Indicates that the mouse
3373 event was synthesized by the application. This allows
3374 distinguishing application-generated mouse events from the ones
3375 that are coming from the system or are synthesized by Qt. This
3376 value was introduced in Qt 5.6
3377
3378 \sa Qt::AA_SynthesizeMouseForUnhandledTouchEvents
3379*/
3380
3381/*!
3382 \enum Qt::MouseEventFlag
3383 \since 5.3
3384
3385 This enum provides additional information concerning a QMouseEvent.
3386
3387 \value MouseEventCreatedDoubleClick Indicates that Qt has created a
3388 \l {QEvent::MouseButtonDblClick}{MouseButtonDblClick} event from this event. The flag is set in the causing
3389 \l {QEvent::MouseButtonPress}{MouseButtonPress}, and not in the resulting \l {QEvent::MouseButtonDblClick}{MouseButtonDblClick}.
3390
3391 \omitvalue NoMouseEventFlag
3392 \omitvalue MouseEventFlagMask
3393*/
3394
3395/*!
3396 \enum Qt::ChecksumType
3397 \since 5.9
3398
3399 This enum describes the possible standards used by qChecksum().
3400
3401 \value ChecksumIso3309 Checksum calculation based on ISO 3309.
3402
3403 \value ChecksumItuV41 Checksum calculation based on ITU-V.41.
3404*/
3405
3406/*!
3407 \enum Qt::HighDpiScaleFactorRoundingPolicy
3408 \since 5.14
3409
3410 This enum describes the possible High-DPI scale factor rounding policies, which
3411 decide how non-integer scale factors (such as Windows 150%) are handled.
3412
3413 The active policy is set by calling QGuiApplication::setHighDpiScaleFactorRoundingPolicy() before
3414 the application object is created.
3415
3416 \sa QGuiApplication::setHighDpiScaleFactorRoundingPolicy()
3417
3418 \omitvalue Unset
3419 \value Round Round up for .5 and above.
3420 \value Ceil Always round up.
3421 \value Floor Always round down.
3422 \value RoundPreferFloor Round up for .75 and above.
3423 \value PassThrough Don't round.
3424*/
3425
3426/*!
3427 \enum Qt::PermissionStatus
3428
3429 This enum describes the possible statuses of a permissions.
3430
3431 \value Undetermined
3432 The permission status is not yet known. Permission should be requested
3433 via QCoreApplication::requestPermission() to determine the actual status.
3434 This status will never be the result of requesting a permission.
3435
3436 \value Granted
3437 The user has explicitly granted the application the permission,
3438 or the permission is known to not require user authorization on
3439 the given platform.
3440
3441 \value Denied
3442 The user has explicitly denied the application the requested permission,
3443 or the permission is known to not be accessible or applicable to applications
3444 on the given platform.
3445
3446 \note On Android, there is no \c Undetermined status by the platform's APIs.
3447 Thus, if a permission is denied for an app,
3448 \l QCoreApplication::checkPermission() returns \c Undetermined
3449 by default until \l QCoreApplication::requestPermission() is called.
3450 After that \l QCoreApplication::checkPermission() reports a non \c Undetermined
3451 status.
3452
3453 \since 6.5
3454 \sa QCoreApplication::requestPermission(), QCoreApplication::checkPermission(),
3455 {Application Permissions}
3456*/
3457
3458/*!
3459 \enum Qt::ReturnByValueConstant
3460 \since 5.15
3461
3462 This is a dummy type, designed to help users transition from certain deprecated APIs to their replacement APIs.
3463
3464 \omitvalue ReturnByValue
3465
3466 \sa QCursor::bitmap()
3467 \sa QCursor::mask()
3468 \sa QLabel::picture()
3469 \sa QLabel::pixmap()
3470*/
3471
3472/*!
3473 \class QKeyCombination
3474 \inmodule QtCore
3475 \since 6.0
3476 \brief The QKeyCombination class stores a combination of a key with optional modifiers.
3477
3478 \compares equality
3479
3480 The QKeyCombination class can be used to represent a combination of a key
3481 with zero or more keyboard modifiers.
3482
3483 \sa QKeySequence
3484*/
3485
3486/*!
3487 \fn QKeyCombination::QKeyCombination(Qt::Key key = Qt::Key_unknown) noexcept
3488
3489 Constructs a QKeyCombination object that represents the key \a key
3490 and no modifiers.
3491
3492 \sa key()
3493*/
3494
3495/*!
3496 \fn QKeyCombination::QKeyCombination(Qt::Modifiers modifiers, Qt::Key key = Qt::Key_unknown) noexcept
3497
3498 Constructs a QKeyCombination object that represents the combination
3499 of \a key with the modifiers \a modifiers.
3500
3501 \sa key(), keyboardModifiers()
3502*/
3503
3504/*!
3505 \fn QKeyCombination::QKeyCombination(Qt::KeyboardModifiers modifiers, Qt::Key key = Qt::Key_unknown) noexcept
3506
3507 Constructs a QKeyCombination object that represents the combination
3508 of \a key with the modifiers \a modifiers.
3509
3510 \sa key(), keyboardModifiers()
3511*/
3512
3513/*!
3514 \fn Qt::KeyboardModifiers QKeyCombination::keyboardModifiers() const noexcept
3515
3516 Returns the keyboard modifiers represented by this QKeyCombination object.
3517
3518 \sa key()
3519*/
3520
3521/*!
3522 \fn Qt::Key QKeyCombination::key() const noexcept
3523
3524 Returns the key represented by this QKeyCombination object.
3525
3526 \sa keyboardModifiers()
3527*/
3528
3529/*!
3530 \fn QKeyCombination QKeyCombination::fromCombined(int combined)
3531
3532 Constructs a QKeyCombination object by extracting the key and the
3533 modifiers out of \a combined, which must be the result of a bitwise
3534 OR between a value of type Qt::Key and value of type
3535 Qt::KeyboardModifiers. toCombined() can be used in order to produce
3536 valid values for \a combined.
3537
3538 \sa toCombined()
3539*/
3540
3541/*!
3542 \fn int QKeyCombination::toCombined() const noexcept
3543
3544 Returns an integer value obtained by applying a bitwise OR between
3545 the values of key() and keyboardModifiers() represented
3546 by this object. A QKeyCombination object can be created from the
3547 returned integer value by using fromCombined().
3548
3549 \sa fromCombined(), key(), keyboardModifiers()
3550*/
3551
3552#if QT_DEPRECATED_SINCE(6, 0)
3553/*!
3554 \fn QKeyCombination::operator int() const noexcept
3555 \deprecated [6.0]
3556
3557 Use toCombined() instead.
3558*/
3559#endif
3560
3561/*!
3562 \fn bool QKeyCombination::operator==(const QKeyCombination &lhs, const QKeyCombination &rhs)
3563
3564 Returns \c true if \a lhs and \a rhs have the same combination
3565 of key and modifiers, and \c false otherwise.
3566*/
3567
3568/*!
3569 \fn bool QKeyCombination::operator!=(const QKeyCombination &lhs, const QKeyCombination &rhs)
3570
3571 Returns \c true if \a lhs and \a rhs have different combinations
3572 of key and modifiers, otherwise \c false.
3573*/
3574
3575/*!
3576 \fn QKeyCombination Qt::operator|(Qt::Modifier modifier, Qt::Key key) noexcept
3577 \fn QKeyCombination Qt::operator|(Qt::KeyboardModifier modifier, Qt::Key key) noexcept
3578 \fn QKeyCombination Qt::operator|(Qt::Key key, Qt::Modifier modifier) noexcept
3579 \fn QKeyCombination Qt::operator|(Qt::Key key, Qt::KeyboardModifier modifier) noexcept
3580
3581 \relates QKeyCombination
3582
3583 Returns a QKeyCombination object that represents the combination
3584 of \a key with the modifier \a modifier.
3585*/
3586
3587/*!
3588 \fn QKeyCombination Qt::operator|(Qt::Modifiers modifiers, Qt::Key key) noexcept
3589 \fn QKeyCombination Qt::operator|(Qt::KeyboardModifiers modifiers, Qt::Key key) noexcept
3590 \fn QKeyCombination Qt::operator|(Qt::Key key, Qt::Modifiers modifiers) noexcept
3591 \fn QKeyCombination Qt::operator|(Qt::Key key, Qt::KeyboardModifiers modifiers) noexcept
3592
3593 \relates QKeyCombination
3594
3595 Returns a QKeyCombination object that represents the combination
3596 of \a key with the modifiers \a modifiers.
3597*/
3598
3599/*!
3600 \fn QKeyCombination Qt::operator+(Qt::Modifier modifier, Qt::Key key) noexcept
3601 \fn QKeyCombination Qt::operator+(Qt::KeyboardModifier modifier, Qt::Key key) noexcept
3602 \fn QKeyCombination Qt::operator+(Qt::Key key, Qt::Modifier modifier) noexcept
3603 \fn QKeyCombination Qt::operator+(Qt::Key key, Qt::KeyboardModifier modifier) noexcept
3604
3605 \relates QKeyCombination
3606 \deprecated [6.0]
3607
3608 Use operator| instead.
3609
3610 Returns a QKeyCombination object that represents the combination
3611 of \a key with the modifier \a modifier.
3612*/
3613
3614/*!
3615 \fn QKeyCombination Qt::operator+(Qt::Modifiers modifiers, Qt::Key key) noexcept
3616 \fn QKeyCombination Qt::operator+(Qt::KeyboardModifiers modifiers, Qt::Key key) noexcept
3617 \fn QKeyCombination Qt::operator+(Qt::Key key, Qt::Modifiers modifiers) noexcept
3618 \fn QKeyCombination Qt::operator+(Qt::Key key, Qt::KeyboardModifiers modifiers) noexcept
3619
3620 \relates QKeyCombination
3621 \deprecated [6.0]
3622
3623 Use operator| instead.
3624
3625 Returns a QKeyCombination object that represents the combination
3626 of \a key with the modifiers \a modifiers.
3627*/
3628
3629/*!
3630 \fn size_t qHash(QKeyCombination key, size_t seed = 0) noexcept
3631 \qhashold{QKeyCombination}
3632*/
3633
3634#ifndef QT_NO_DEBUG_STREAM
3635/*!
3636 \fn QDebug operator<<(QDebug debug, QKeyCombination combination)
3637 \relates QKeyCombination
3638
3639 Writes the combination \a combination into the debug object \a debug for
3640 debugging purposes.
3641
3642 \sa {Debugging Techniques}
3643*/
3644#endif
3645
3646#ifndef QT_NO_DATASTREAM
3647/*!
3648 \fn QDataStream &operator<<(QDataStream &out, QKeyCombination combination)
3649 \relates QKeyCombination
3650
3651 Writes the combination \a combination into the stream \a out.
3652 Returns \a out.
3653
3654 \sa {Serializing Qt Data Types}
3655*/
3656
3657/*!
3658 \fn QDataStream &operator>>(QDataStream &in, QKeyCombination &combination)
3659 \relates QKeyCombination
3660
3661 Reads the combination \a combination from the stream \a in.
3662 Returns \a in.
3663
3664 \sa {Serializing Qt Data Types}
3665*/
3666#endif