6.0.0-rc4Source

Qt Namespace

The Qt namespace contains miscellaneous identifiers used throughout Nt. More…

Header#include <Qt>
CMaketarget_link_libraries(app PRIVATE Nt::Core)
ModuleNt Core C++ Classes

Public Types

Public Functions

Public Variables

namespaceLiterals

Detailed Description

It holds the enums shared by several classes, such as Qt::CaseSensitivity and Qt::TimeSpec.

Differences from Qt

Only the enums listed here exist. Qt's other Qt:: enums, such as the window flags, cursor shapes and item-view roles, are not provided. The enums that Nt GUI uses (keys, mouse buttons, modifiers, colors, pen and brush styles and alignment) hold a subset of Qt's values, with the same numbers.

Member Type Documentation

typedef Qt::Alignment

The Alignment type is a typedef for QFlags<AlignmentFlag>. It stores an OR combination of AlignmentFlag values.

enum Qt::AlignmentFlag

This enum describes how text and items are aligned. The Alignment type is a typedef for QFlags<AlignmentFlag>.

ConstantDescription
Qt::AlignLeftAligns with the left edge.
Qt::AlignRightAligns with the right edge.
Qt::AlignHCenterCenters horizontally.
Qt::AlignTopAligns with the top.
Qt::AlignBottomAligns with the bottom.
Qt::AlignVCenterCenters vertically.
Qt::AlignCenterCenters both ways: AlignHCenter | AlignVCenter.

enum Qt::ArrowType

This enum says which way the arrow of a tool button points.

ConstantDescription
Qt::NoArrowNo arrow.
Qt::UpArrowAn arrow that points up.
Qt::DownArrowAn arrow that points down.
Qt::LeftArrowAn arrow that points to the left.
Qt::RightArrowAn arrow that points to the right.

enum Qt::AspectRatioMode

This enum describes how to scale a rectangle or size to fit another.

ConstantDescription
Qt::IgnoreAspectRatioThe size is scaled freely; the aspect ratio is not preserved.
Qt::KeepAspectRatioThe size is scaled to the largest rectangle that fits inside the given size, preserving the aspect ratio.
Qt::KeepAspectRatioByExpandingThe size is scaled to the smallest rectangle that contains the given size, preserving the aspect ratio.

See also QSize::scaled().

enum Qt::Axis

This enum names the axes of a rotation.

ConstantDescription
Qt::XAxisThe x axis.
Qt::YAxisThe y axis.
Qt::ZAxisThe z axis, out of the screen: rotations in the plane.

enum Qt::BrushStyle

This enum describes how QPainter fills shapes.

ConstantDescription
Qt::NoBrushNo fill.
Qt::SolidPatternA uniform fill.
Qt::LinearGradientPatternA QLinearGradient.
Qt::RadialGradientPatternA QRadialGradient.
Qt::ConicalGradientPatternA QConicalGradient.

enum Qt::CaseSensitivity

This enum selects whether a string comparison or search distinguishes upper and lower case.

ConstantDescription
Qt::CaseInsensitiveCase is ignored.
Qt::CaseSensitiveCase is significant.

enum Qt::CheckState

ConstantDescription
Qt::UncheckedThe item is not checked.
Qt::PartiallyCheckedSome of the children of the item are checked.
Qt::CheckedThe item is checked.

enum Qt::ColorScheme

This enum describes the color scheme of the desktop: whether the interface is meant to be light on dark or dark on light. QStyleHints::colorScheme() returns it.

ConstantDescription
Qt::UnknownThe color scheme is not known; applications should treat it as Light.
Qt::LightDark text on light backgrounds.
Qt::DarkLight text on dark backgrounds.

enum Qt::ConnectionType

This enum describes how a signal is delivered to a slot.

ConstantDescription
Qt::AutoConnectionThe default. The slot is called directly if the receiver lives in the thread that emits the signal, and queued otherwise. The decision is made at emission time.
Qt::DirectConnectionThe slot is called immediately when the signal is emitted, in the emitting thread.
Qt::QueuedConnectionThe arguments are copied and the slot is called later from the event loop of the receiver's thread.
Qt::BlockingQueuedConnectionLike QueuedConnection, but the emitting thread blocks until the slot has returned. If the receiver lives in the emitting thread, the slot is called directly instead of deadlocking.
Qt::UniqueConnectionA flag combined with one of the types above: connect() fails if the same signal is already connected to the same slot of the same receiver. It applies to member function slots and to slots named by string, not to functors.
Qt::SingleShotConnectionA flag combined with one of the types above: the slot is called for the first emission only, and the connection is then removed.

See also QObject::connect() and Signals and Slots.

enum Qt::CursorShape

The shapes of the mouse cursor, for QCursor.

ConstantDescription
Qt::ArrowCursorThe standard arrow.
Qt::UpArrowCursorAn arrow that points up.
Qt::CrossCursorA crosshair, for picking a point.
Qt::WaitCursorAn hourglass or a watch: the application is busy and takes no input.
Qt::IBeamCursorA caret, over text that can be selected and edited.
Qt::SizeVerCursorA vertical double arrow, for resizing something vertically.
Qt::SizeHorCursorA horizontal double arrow.
Qt::SizeBDiagCursorA double arrow from the bottom left to the top right.
Qt::SizeFDiagCursorA double arrow from the top left to the bottom right.
Qt::SizeAllCursorArrows in the four directions, for moving something.
Qt::BlankCursorNo cursor at all.
Qt::SplitVCursorFor dragging a horizontal splitter up and down.
Qt::SplitHCursorFor dragging a vertical splitter left and right.
Qt::PointingHandCursorA hand with a pointing finger, over a link.
Qt::ForbiddenCursorA crossed circle: what is dragged cannot be dropped here.
Qt::WhatsThisCursorAn arrow with a question mark.
Qt::BusyCursorAn arrow with an hourglass: the application works, but still takes input.
Qt::OpenHandCursorAn open hand, over something that can be dragged.
Qt::ClosedHandCursorA closed hand, while it is dragged.
Qt::DragCopyCursorWhat is dragged will be copied.
Qt::DragMoveCursorWhat is dragged will be moved.
Qt::DragLinkCursorA link to what is dragged will be made.
Qt::BitmapCursorA cursor made of a bitmap. Nt has none.
Qt::CustomCursorA cursor of the platform that has no shape of its own here.

See also QCursor.

enum Qt::DateFormat

This enum selects the textual format of dates and times.

The toString() and fromString() functions of QDate, QTime and QDateTime accept this enum.

ConstantDescription
Qt::TextDateA locale-independent text form such as Sat Nov 7 2026; the default.
Qt::ISODateISO 8601 extended format, such as 2026-11-07 and 20:10:14.
Qt::ISODateWithMsISO 8601 extended format with milliseconds, such as 20:10:14.844.
Qt::RFC2822DateThe RFC 2822 format, such as 07 Nov 2026.

enum Qt::DayOfWeek

The days of the week, numbered as QDate::dayOfWeek() numbers them.

ConstantDescription
Qt::MondayMonday, 1.
Qt::TuesdayTuesday, 2.
Qt::WednesdayWednesday, 3.
Qt::ThursdayThursday, 4.
Qt::FridayFriday, 5.
Qt::SaturdaySaturday, 6.
Qt::SundaySunday, 7.

enum Qt::DockWidgetArea

This enum gives the sides of a QMainWindow where dock widgets go. The DockWidgetAreas type is a typedef for QFlags<DockWidgetArea>.

ConstantDescription
Qt::LeftDockWidgetAreaThe left side.
Qt::RightDockWidgetAreaThe right side.
Qt::TopDockWidgetAreaThe top.
Qt::BottomDockWidgetAreaThe bottom.
Qt::AllDockWidgetAreasAll the sides.
Qt::NoDockWidgetAreaNone.

typedef Qt::DockWidgetAreas

The DockWidgetAreas type is a typedef for QFlags<DockWidgetArea>. It stores an OR combination of DockWidgetArea values.

enum Qt::DropAction

The actions a drag and drop operation can perform.

ConstantDescription
Qt::CopyActionCopy the data to the target.
Qt::MoveActionMove the data from the source to the target.
Qt::LinkActionCreate a link from the source to the target.
Qt::ActionMaskThe bits of the actions.
Qt::TargetMoveActionThe target moves the data and the source should not delete it.
Qt::IgnoreActionIgnore the action.

typedef Qt::DropActions

The DropActions type is a typedef for QFlags<DropAction>. It stores an OR combination of DropAction values.

enum Qt::FillRule

This enum describes which points are inside a shape whose outline crosses itself.

ConstantDescription
Qt::OddEvenFillA point is inside if a ray from it crosses the outline an odd number of times.
Qt::WindingFillA point is inside if the outline winds around it: the windings in each direction do not cancel out.

enum Qt::FindChildOption

This enum controls how QObject::findChild() and QObject::findChildren() search. The FindChildOptions type is a typedef for QFlags<FindChildOption>.

ConstantDescription
Qt::FindDirectChildrenOnlyOnly direct children are searched.
Qt::FindChildrenRecursivelyAll descendants are searched.

typedef Qt::FindChildOptions

The FindChildOptions type is a typedef for QFlags<FindChildOption>. It stores an OR combination of FindChildOption values.

enum Qt::FocusPolicy

This enum says how a widget gets the keyboard focus.

ConstantDescription
Qt::NoFocusThe widget does not accept focus.
Qt::TabFocusThe widget accepts focus by tabbing.
Qt::ClickFocusThe widget accepts focus by clicking.
Qt::StrongFocusThe widget accepts focus by tabbing and clicking.
Qt::WheelFocusAccepted for compatibility; the same as StrongFocus.

enum Qt::GlobalColor

This enum names the predefined colors that QColor and QBrush accept.

ConstantDescription
Qt::color0Zero pixel value, transparent in a bitmap.
Qt::color1Pixel value one, opaque in a bitmap.
Qt::blackBlack, 0x000000.
Qt::whiteWhite, 0xffffff.
Qt::darkGrayDark gray, 0x808080.
Qt::grayGray, 0xa0a0a4.
Qt::lightGrayLight gray, 0xc0c0c0.
Qt::redRed, 0xff0000.
Qt::greenGreen, 0x00ff00.
Qt::blueBlue, 0x0000ff.
Qt::cyanCyan, 0x00ffff.
Qt::magentaMagenta, 0xff00ff.
Qt::yellowYellow, 0xffff00.
Qt::darkRedDark red, 0x800000.
Qt::darkGreenDark green, 0x008000.
Qt::darkBlueDark blue, 0x000080.
Qt::darkCyanDark cyan, 0x008080.
Qt::darkMagentaDark magenta, 0x800080.
Qt::darkYellowDark yellow, 0x808000.
Qt::transparentFully transparent.

typedef Qt::HANDLE

An opaque thread handle: the value QThread::currentThreadId() returns, a void *.

enum Qt::Initialization

This enum is the tag of the constructors that leave the contents of a container unset, such as QByteArray(size, Qt::Uninitialized), for callers that fill in every element afterwards.

ConstantDescription
Qt::UninitializedThe elements need no particular value. Nt value-initializes them: bytes and characters are zero, and class types are default-constructed.

enum Qt::ItemDataRole

The roles under which an item model stores the data of an item. Roles from UserRole on are for application-specific data.

ConstantDescription
Qt::DisplayRoleThe text shown for the item (QString).
Qt::DecorationRoleThe icon or color shown with the item.
Qt::EditRoleThe data in a form suitable for editing (QString).
Qt::ToolTipRoleThe tool tip of the item (QString).
Qt::StatusTipRoleThe status bar text of the item (QString).
Qt::WhatsThisRoleThe "What's This?" text of the item (QString).
Qt::FontRoleThe font of the item.
Qt::TextAlignmentRoleThe alignment of the text (Qt::Alignment).
Qt::BackgroundRoleThe background of the item.
Qt::ForegroundRoleThe foreground (text) color of the item.
Qt::CheckStateRoleThe check state of the item (Qt::CheckState).
Qt::AccessibleTextRoleThe text for accessibility tools.
Qt::AccessibleDescriptionRoleThe description for accessibility tools.
Qt::SizeHintRoleThe size hint of the item.
Qt::InitialSortOrderRoleThe initial sort order of a header section (Qt::SortOrder).
Qt::DisplayPropertyRoleReserved.
Qt::DecorationPropertyRoleReserved.
Qt::ToolTipPropertyRoleReserved.
Qt::StatusTipPropertyRoleReserved.
Qt::WhatsThisPropertyRoleReserved.
Qt::UserRoleThe first role for application-specific data.

enum Qt::ItemFlag

This enum describes what the user can do with an item of a table.

ConstantDescription
Qt::NoItemFlagsThe item cannot be used.
Qt::ItemIsSelectableThe user can select the item.
Qt::ItemIsEditableThe user can edit the item.
Qt::ItemIsDragEnabledThe item can be dragged.
Qt::ItemIsDropEnabledThe item can be used as a drop target.
Qt::ItemIsUserCheckableThe user can check or uncheck the item.
Qt::ItemIsEnabledThe user can interact with the item; a disabled item is drawn in the disabled colors and cannot be selected.
Qt::ItemIsAutoTristateThe check state of the item depends on the check states of its children.
Qt::ItemNeverHasChildrenThe item never has children; views can use this for optimization.
Qt::ItemIsUserTristateThe user can cycle through three check states.

typedef Qt::ItemFlags

The ItemFlags type is a typedef for QFlags<ItemFlag>. It stores an OR combination of ItemFlag values.

enum Qt::Key

This enum holds the keys that QKeyEvent reports. Printable keys use their Latin-1 upper case code, so Key_A is 0x41.

ConstantDescription
Qt::Key_EscapeThe Escape key.
Qt::Key_TabThe Tab key.
Qt::Key_BacktabShift+Tab.
Qt::Key_BackspaceThe Backspace key.
Qt::Key_ReturnThe main Return key.
Qt::Key_EnterThe Enter key on the keypad.
Qt::Key_InsertThe Insert key.
Qt::Key_DeleteThe Delete key.
Qt::Key_PauseThe Pause key.
Qt::Key_PrintThe Print Screen key.
Qt::Key_HomeThe Home key.
Qt::Key_EndThe End key.
Qt::Key_LeftThe left arrow.
Qt::Key_UpThe up arrow.
Qt::Key_RightThe right arrow.
Qt::Key_DownThe down arrow.
Qt::Key_PageUpThe Page Up key.
Qt::Key_PageDownThe Page Down key.
Qt::Key_ShiftA Shift key.
Qt::Key_ControlA Ctrl key.
Qt::Key_MetaA Meta key.
Qt::Key_AltAn Alt key.
Qt::Key_CapsLockThe Caps Lock key.
Qt::Key_NumLockThe Num Lock key.
Qt::Key_ScrollLockThe Scroll Lock key.
Qt::Key_F1The F1 key.
Qt::Key_F2The F2 key.
Qt::Key_F3The F3 key.
Qt::Key_F4The F4 key.
Qt::Key_F5The F5 key.
Qt::Key_F6The F6 key.
Qt::Key_F7The F7 key.
Qt::Key_F8The F8 key.
Qt::Key_F9The F9 key.
Qt::Key_F10The F10 key.
Qt::Key_F11The F11 key.
Qt::Key_F12The F12 key.
Qt::Key_SpaceThe space bar.
Qt::Key_0The 0 key.
Qt::Key_1The 1 key.
Qt::Key_2The 2 key.
Qt::Key_3The 3 key.
Qt::Key_4The 4 key.
Qt::Key_5The 5 key.
Qt::Key_6The 6 key.
Qt::Key_7The 7 key.
Qt::Key_8The 8 key.
Qt::Key_9The 9 key.
Qt::Key_AThe A key.
Qt::Key_BThe B key.
Qt::Key_CThe C key.
Qt::Key_DThe D key.
Qt::Key_EThe E key.
Qt::Key_FThe F key.
Qt::Key_GThe G key.
Qt::Key_HThe H key.
Qt::Key_IThe I key.
Qt::Key_JThe J key.
Qt::Key_KThe K key.
Qt::Key_LThe L key.
Qt::Key_MThe M key.
Qt::Key_NThe N key.
Qt::Key_OThe O key.
Qt::Key_PThe P key.
Qt::Key_QThe Q key.
Qt::Key_RThe R key.
Qt::Key_SThe S key.
Qt::Key_TThe T key.
Qt::Key_UThe U key.
Qt::Key_VThe V key.
Qt::Key_WThe W key.
Qt::Key_XThe X key.
Qt::Key_YThe Y key.
Qt::Key_ZThe Z key.
Qt::Key_MenuThe Menu key, which opens a context menu.
Qt::Key_PlusThe + key.
Qt::Key_CommaThe , key.
Qt::Key_MinusThe - key.
Qt::Key_PeriodThe . key.
Qt::Key_SlashThe / key.
Qt::Key_EqualThe = key.
Qt::Key_unknownA key without a Qt::Key value.

enum Qt::KeyboardModifier

This enum describes the modifier keys. The KeyboardModifiers type is a typedef for QFlags<KeyboardModifier>.

ConstantDescription
Qt::NoModifierNo modifier key is pressed.
Qt::ShiftModifierA Shift key is pressed.
Qt::ControlModifierA Ctrl key is pressed.
Qt::AltModifierAn Alt key is pressed.
Qt::MetaModifierA Meta (Super, Windows) key is pressed.
Qt::KeypadModifierThe key is on the keypad.

typedef Qt::KeyboardModifiers

The KeyboardModifiers type is a typedef for QFlags<KeyboardModifier>. It stores an OR combination of KeyboardModifier values.

enum Qt::LayoutDirection

The direction in which text is written and laid out.

ConstantDescription
Qt::LeftToRightLeft to right.
Qt::RightToLeftRight to left.
Qt::LayoutDirectionAutoThe direction is determined automatically from the content.

See also QLocale::textDirection().

enum Qt::MatchFlag

How a text is matched against items, as by QCompleter. The MatchFlags type is a typedef for QFlags<MatchFlag>.

ConstantDescription
Qt::MatchExactlyThe whole text.
Qt::MatchContainsThe text anywhere in the item.
Qt::MatchStartsWithThe start of the item.
Qt::MatchEndsWithThe end of the item.
Qt::MatchRegularExpressionA regular expression (QRegularExpression).
Qt::MatchWildcardA shell wildcard pattern.
Qt::MatchFixedStringThe text as a string, ignoring case unless MatchCaseSensitive is set.
Qt::MatchTypeMaskThe bits that hold the kind of match.
Qt::MatchCaseSensitiveCase matters.
Qt::MatchWrapSearching wraps round to the start.
Qt::MatchRecursiveItems under items are searched too.

typedef Qt::MatchFlags

The MatchFlags type is a typedef for QFlags<MatchFlag>. It stores an OR combination of MatchFlag values.

enum Qt::Modifier

This enum holds the modifiers as they are added to a key code in a QKeySequence, as in Qt::CTRL | Qt::Key_S.

ConstantDescription
Qt::SHIFTThe Shift key.
Qt::CTRLThe Ctrl key.
Qt::ALTThe Alt key.
Qt::METAThe Meta (Super, Windows) key.
Qt::MODIFIER_MASKThe bits that a key code does not use, where the modifiers are.

enum Qt::MouseButton

This enum describes the mouse buttons. The MouseButtons type is a typedef for QFlags<MouseButton>.

ConstantDescription
Qt::NoButtonNo button, as in a mouse move event.
Qt::LeftButtonThe left button.
Qt::RightButtonThe right button.
Qt::MiddleButtonThe middle button, often the wheel.
Qt::BackButtonThe back navigation button.
Qt::ForwardButtonThe forward navigation button.
Qt::AllButtonsEvery button.

typedef Qt::MouseButtons

The MouseButtons type is a typedef for QFlags<MouseButton>. It stores an OR combination of MouseButton values.

enum Qt::Orientation

This enum describes a direction.

The Orientations type is a typedef for QFlags<Orientation>.

ConstantDescription
Qt::HorizontalLeft to right.
Qt::VerticalTop to bottom.

typedef Qt::Orientations

The Orientations type is a typedef for QFlags<Orientation>. It stores an OR combination of Orientation values.

enum Qt::PenCapStyle

This enum describes how the ends of lines are drawn.

ConstantDescription
Qt::FlatCapThe line stops at its end point.
Qt::SquareCapThe line goes on for half its width past its end point, squarely.
Qt::RoundCapThe line ends in a half circle around its end point.

enum Qt::PenJoinStyle

This enum describes how the segments of a line meet.

ConstantDescription
Qt::MiterJoinThe outer edges are extended to meet, up to the miter limit of the pen.
Qt::BevelJoinThe corner is cut off.
Qt::RoundJoinThe corner is rounded.
Qt::SvgMiterJoinAs MiterJoin; a corner beyond the miter limit is beveled.

enum Qt::PenStyle

This enum describes how QPainter draws lines.

ConstantDescription
Qt::NoPenNo line is drawn.
Qt::SolidLineA plain line.
Qt::DashLineDashes separated by gaps.
Qt::DotLineDots separated by gaps.
Qt::DashDotLineDashes and dots, alternating.
Qt::DashDotDotLineA dash and two dots, repeating.
Qt::CustomDashLineThe dashes of QPen::dashPattern().

enum Qt::ScrollBarPolicy

This enum says when a scroll area shows a scroll bar.

ConstantDescription
Qt::ScrollBarAsNeededThe scroll bar is shown when the contents do not fit.
Qt::ScrollBarAlwaysOffThe scroll bar is never shown.
Qt::ScrollBarAlwaysOnThe scroll bar is always shown.

enum Qt::SizeMode

This enum describes how the radii of rounded rectangles are given.

ConstantDescription
Qt::AbsoluteSizeIn the units of the painter.
Qt::RelativeSizeAs percentages of half the width and half the height of the rectangle.

enum Qt::SortOrder

This enum says in which direction items are sorted.

ConstantDescription
Qt::AscendingOrderFrom the smallest to the largest.
Qt::DescendingOrderFrom the largest to the smallest.

typedef Qt::SplitBehavior

The SplitBehavior type is a typedef for QFlags<SplitBehaviorFlags>. It stores an OR combination of SplitBehaviorFlags values.

enum Qt::SplitBehaviorFlags

This enum controls whether empty parts are kept when splitting a string. The SplitBehavior type is a typedef for QFlags<SplitBehaviorFlags>.

ConstantDescription
Qt::KeepEmptyPartsEmpty parts are kept in the result.
Qt::SkipEmptyPartsEmpty parts are left out of the result.

enum Qt::TextElideMode

This enum says where QFontMetrics::elidedText() replaces text with an ellipsis.

ConstantDescription
Qt::ElideLeftThe ellipsis is at the start of the text.
Qt::ElideRightThe ellipsis is at the end of the text.
Qt::ElideMiddleThe ellipsis is in the middle of the text.
Qt::ElideNoneThe text is not shortened.

enum Qt::TextFlag

This enum holds the flags that QPainter::drawText() and QFontMetrics::boundingRect() accept in addition to Qt::AlignmentFlag.

ConstantDescription
Qt::TextSingleLineTreats all whitespace, new lines included, as spaces.
Qt::TextDontClipText that does not fit is drawn outside the rectangle instead of being clipped.
Qt::TextWordWrapBreaks lines at word boundaries to fit the width of the rectangle.
Qt::TextWrapAnywhereBreaks lines between any two characters if a word does not fit.

enum Qt::TextFormat

This enum says how a text is to be read, by a QLabel for example.

ConstantDescription
Qt::PlainTextThe text is shown as it is.
Qt::RichTextThe text is HTML, as QTextDocument::setHtml() reads it.
Qt::AutoTextThe text is rich text if Qt::mightBeRichText() says so, and plain text otherwise.
Qt::MarkdownTextThe text is Markdown. Nt shows it as plain text.

enum Qt::TimerId

The type of a timer identifier, as returned by QTimer::id() and QBasicTimer::id(). The value is the int identifier that QObject::startTimer() returns.

ConstantDescription
Qt::InvalidThe identifier of a timer that is not running.

This function was introduced in 6.8.

See also QTimer::id(), QBasicTimer::id() and QTimerEvent::id().

enum Qt::TimerType

This enum describes the accuracy a timer should have.

ConstantDescription
Qt::PreciseTimerAccepted for compatibility; it has no effect.
Qt::CoarseTimerAccepted for compatibility; it has no effect.
Qt::VeryCoarseTimerAccepted for compatibility; it has no effect.

See also QBasicTimer and QTimer.

enum Qt::TimeSpec

This enum describes how a date and time is to be interpreted.

The QDateTime class uses this enum.

ConstantDescription
Qt::LocalTimeThe local time of the system.
Qt::UTCCoordinated Universal Time.
Qt::OffsetFromUTCA fixed offset in seconds from UTC.
Qt::TimeZoneA time zone given as a QTimeZone.

enum Qt::ToolBarArea

This enum gives the sides of a QMainWindow where tool bars go. The ToolBarAreas type is a typedef for QFlags<ToolBarArea>.

ConstantDescription
Qt::LeftToolBarAreaThe left side.
Qt::RightToolBarAreaThe right side.
Qt::TopToolBarAreaThe top, below the menu bar.
Qt::BottomToolBarAreaThe bottom, above the status bar.
Qt::AllToolBarAreasAll the sides.
Qt::NoToolBarAreaNone.

typedef Qt::ToolBarAreas

The ToolBarAreas type is a typedef for QFlags<ToolBarArea>. It stores an OR combination of ToolBarArea values.

enum Qt::ToolButtonStyle

This enum says what a tool button shows.

ConstantDescription
Qt::ToolButtonIconOnlyOnly the icon.
Qt::ToolButtonTextOnlyOnly the text.
Qt::ToolButtonTextBesideIconThe text beside the icon.
Qt::ToolButtonTextUnderIconThe text under the icon.
Qt::ToolButtonFollowStyleWhat the style says.

enum Qt::WhiteSpaceMode

This enum says what Qt::convertFromPlainText() does with white space.

ConstantDescription
Qt::WhiteSpaceNormalSpaces are left to the rules of HTML, which show a run of them as one.
Qt::WhiteSpacePreSpaces are kept as they are.
Qt::WhiteSpaceNoWrapSpaces are left as with WhiteSpaceNormal.

enum Qt::WidgetAttribute

The attributes of a widget, which QWidget::setAttribute() sets and QWidget::testAttribute() reads. The numbers are those of Qt. Nt has the attributes listed here; of these, the ones described as kept for the application are stored and returned, and change nothing by themselves.

ConstantDescription
Qt::WA_DisabledThe widget is disabled; the same as QWidget::setEnabled() with false.
Qt::WA_UnderMouseThe mouse is over the widget. Set by Nt; see QWidget::underMouse().
Qt::WA_MouseTrackingThe widget gets mouse move events while no button is down; see QWidget::setMouseTracking().
Qt::WA_OpaquePaintEventThe widget paints all of its pixels itself, so its background is not filled first.
Qt::WA_StaticContentsKept for the application.
Qt::WA_NoSystemBackgroundThe background of the widget is not filled before it is painted.
Qt::WA_UpdatesDisabledThe widget is not repainted; see QWidget::setUpdatesEnabled().
Qt::WA_InputMethodEnabledKept for the application; Nt has no input methods.
Qt::WA_SetPaletteThe widget has a palette of its own. Set by QWidget::setPalette().
Qt::WA_SetFontThe widget has a font of its own. Set by QWidget::setFont().
Qt::WA_SetCursorThe widget has a cursor of its own. Set by QWidget::setCursor().
Qt::WA_WindowModifiedThe window has changes that are not saved; see QWidget::setWindowModified().
Qt::WA_ResizedKept for the application.
Qt::WA_MovedKept for the application.
Qt::WA_TransparentForMouseEventsThe mouse does not find the widget or its children: events go to what is behind them.
Qt::WA_DeleteOnCloseThe widget is deleted when it is closed and accepts the close event.
Qt::WA_ShowModalKept for the application; use QWidget::setWindowModality().
Qt::WA_NoMousePropagationA mouse event that the widget does not accept is not passed on to its parent.
Qt::WA_HoverThe widget is repainted when the mouse enters or leaves it. Nt repaints every widget then, so this changes nothing.
Qt::WA_QuitOnCloseThe window counts as one of those that keep the application running: closing the last of them quits it. On by default for windows.
Qt::WA_KeyboardFocusChangeKept for the application.
Qt::WA_AcceptDropsKept for the application; Nt has no drag and drop.
Qt::WA_AlwaysShowToolTipsKept for the application: Nt shows tool tips in windows that are not active too.
Qt::WA_SetStyleThe widget has a style of its own. Set by QWidget::setStyle().
Qt::WA_StyledBackgroundKept for the application; Nt has no style sheets.
Qt::WA_ShowWithoutActivatingKept for the application: whether a window that is shown becomes active is up to the window system.
Qt::WA_TranslucentBackgroundKept for the application; windows of Nt are opaque.
Qt::WA_AcceptTouchEventsKept for the application; Nt has no touch events.

See also QWidget::setAttribute() and QWidget::testAttribute().

typedef Qt::WindowFlags

The WindowFlags type is a typedef for QFlags<WindowType>. It stores an OR combination of WindowType values.

enum Qt::WindowModality

This enum says which windows a modal window blocks the input of while it is shown.

ConstantDescription
Qt::NonModalNone.
Qt::WindowModalIts parent window, and the parent window of that, and so on.
Qt::ApplicationModalAll the other windows of the application.

enum Qt::WindowState

The state of a window, such as a QMdiSubWindow. The WindowStates type is a typedef for QFlags<WindowState>.

ConstantDescription
Qt::WindowNoStateNormal.
Qt::WindowMinimizedMinimized to a title bar or an icon.
Qt::WindowMaximizedTaking all the room it has.
Qt::WindowFullScreenTaking the whole screen.
Qt::WindowActiveThe active window.

typedef Qt::WindowStates

The WindowStates type is a typedef for QFlags<WindowState>. It stores an OR combination of WindowState values.

enum Qt::WindowType

This enum gives the kind of window a widget is, and hints for how the window system decorates it. The WindowFlags type is a typedef for QFlags<WindowType>.

ConstantDescription
Qt::WidgetA widget that is a child of its parent; with no parent it is a window anyway.
Qt::WindowA window, even if the widget has a parent.
Qt::DialogA dialog: a window that the window system keeps above its parent.
Qt::SheetAccepted for compatibility; the same as Dialog.
Qt::DrawerAccepted for compatibility; the same as Dialog.
Qt::PopupA popup window, such as a menu.
Qt::ToolA tool window, kept above its parent.
Qt::ToolTipA tool tip.
Qt::SplashScreenA splash screen.
Qt::SubWindowA child window inside another widget.
Qt::WindowType_MaskThe bits of the flags that hold the kind of window.
Qt::MSWindowsFixedSizeDialogHintAccepted for compatibility; it does nothing.
Qt::FramelessWindowHintA window without a frame or a title bar.
Qt::WindowTitleHintA window with a title bar.
Qt::WindowSystemMenuHintA window with a window menu.
Qt::WindowMinimizeButtonHintA window with a button that minimizes it.
Qt::WindowMaximizeButtonHintA window with a button that maximizes it.
Qt::WindowMinMaxButtonsHintBoth of the above.
Qt::WindowContextHelpButtonHintA window with a help button.
Qt::WindowStaysOnTopHintA window that is kept above the others.
Qt::WindowCloseButtonHintA window with a close button.
Qt::CustomizeWindowHintThe decoration hints replace the ones the window system would choose.

Function Documentation

QTextStream & Qt::bin(QTextStream &s)

Calls QTextStream::setIntegerBase() with base 2 on the stream s and returns s.

QTextStream & Qt::bom(QTextStream &s)

Calls QTextStream::setGenerateByteOrderMark() with true on the stream s and returns s.

QTextStream & Qt::center(QTextStream &s)

Sets the field alignment of the stream s to QTextStream::AlignCenter and returns s.

See also QTextStream::setFieldAlignment().

QString Qt::convertFromPlainText(const QString &plain, WhiteSpaceMode mode = WhiteSpacePre)

Returns plain as HTML that shows the same text: the characters that mean something in HTML are escaped, and the line breaks are kept. With mode Qt::WhiteSpacePre the spaces are kept too.

See also mightBeRichText().

QTextStream & Qt::dec(QTextStream &s)

Calls QTextStream::setIntegerBase() with base 10 on the stream s and returns s.

QTextStream & Qt::endl(QTextStream &s)

Writes a newline character to the stream s, flushes it, and returns s.

See also QTextStream::flush().

QTextStream & Qt::fixed(QTextStream &s)

Sets the real number notation of the stream s to QTextStream::FixedNotation and returns s.

See also QTextStream::setRealNumberNotation().

QTextStream & Qt::flush(QTextStream &s)

Flushes the stream s and returns s.

See also QTextStream::flush().

QTextStream & Qt::forcepoint(QTextStream &s)

Sets the ForcePoint number flag on the stream s and returns s.

See also QTextStream::setNumberFlags().

QTextStream & Qt::forcesign(QTextStream &s)

Sets the ForceSign number flag on the stream s and returns s.

See also QTextStream::setNumberFlags().

QTextStream & Qt::hex(QTextStream &s)

Calls QTextStream::setIntegerBase() with base 16 on the stream s and returns s.

QTextStream & Qt::left(QTextStream &s)

Sets the field alignment of the stream s to QTextStream::AlignLeft and returns s.

See also QTextStream::setFieldAlignment().

QTextStream & Qt::lowercasebase(QTextStream &s)

Clears the UppercaseBase number flag on the stream s and returns s.

See also QTextStream::setNumberFlags().

QTextStream & Qt::lowercasedigits(QTextStream &s)

Clears the UppercaseDigits number flag on the stream s and returns s.

See also QTextStream::setNumberFlags().

bool Qt::mightBeRichText(const QString &text)

Returns true if text looks like rich text: if its first line has a tag of HTML. A QLabel uses this to decide how to show a text whose format it was not told.

See also convertFromPlainText().

QTextStream & Qt::noforcepoint(QTextStream &s)

Clears the ForcePoint number flag on the stream s and returns s.

See also QTextStream::setNumberFlags().

QTextStream & Qt::noforcesign(QTextStream &s)

Clears the ForceSign number flag on the stream s and returns s.

See also QTextStream::setNumberFlags().

QTextStream & Qt::noshowbase(QTextStream &s)

Clears the ShowBase number flag on the stream s and returns s.

See also QTextStream::setNumberFlags().

QTextStream & Qt::oct(QTextStream &s)

Calls QTextStream::setIntegerBase() with base 8 on the stream s and returns s.

QTextStream & Qt::reset(QTextStream &s)

Resets the formatting options of the stream s to their defaults and returns s.

See also QTextStream::reset().

Sets the field alignment of the stream s to QTextStream::AlignRight and returns s.

See also QTextStream::setFieldAlignment().

QTextStream & Qt::scientific(QTextStream &s)

Sets the real number notation of the stream s to QTextStream::ScientificNotation and returns s.

See also QTextStream::setRealNumberNotation().

QTextStream & Qt::showbase(QTextStream &s)

Sets the ShowBase number flag on the stream s and returns s.

See also QTextStream::setNumberFlags().

QTextStream & Qt::uppercasebase(QTextStream &s)

Sets the UppercaseBase number flag on the stream s and returns s.

See also QTextStream::setNumberFlags().

QTextStream & Qt::uppercasedigits(QTextStream &s)

Sets the UppercaseDigits number flag on the stream s and returns s.

See also QTextStream::setNumberFlags().

QTextStream & Qt::ws(QTextStream &s)

Skips whitespace in the stream s and returns s.

See also QTextStream::skipWhiteSpace().

Member Variable Documentation

namespace Qt::Literals

The Qt::Literals inline namespace holds the user-defined literal operators of Nt, so they are found through using namespace Qt::Literals, using namespace Qt::StringLiterals or using namespace Qt. The string literals _s (a QString from a u"" literal) and _L1 (a QLatin1StringView or QChar from a Latin-1 literal) are provided.