?? qnamespace.h
字號:
enum WindowsVersion#endif { WV_32s = QSysInfo::WV_32s, WV_95 = QSysInfo::WV_95, WV_98 = QSysInfo::WV_98, WV_Me = QSysInfo::WV_Me, WV_DOS_based= QSysInfo::WV_DOS_based, WV_NT = QSysInfo::WV_NT, WV_2000 = QSysInfo::WV_2000, WV_XP = QSysInfo::WV_XP, WV_2003 = QSysInfo::WV_2003, WV_NT_based = QSysInfo::WV_NT_based, WV_CE = QSysInfo::WV_CE, WV_CENET = QSysInfo::WV_CENET, WV_CE_based = QSysInfo::WV_CE_based };#endif // Q_OS_WIN#endif // QT3_SUPPORT enum UIEffect { UI_General, UI_AnimateMenu, UI_FadeMenu, UI_AnimateCombo, UI_AnimateTooltip, UI_FadeTooltip, UI_AnimateToolBox }; enum CursorShape { ArrowCursor, UpArrowCursor, CrossCursor, WaitCursor, IBeamCursor, SizeVerCursor, SizeHorCursor, SizeBDiagCursor, SizeFDiagCursor, SizeAllCursor, BlankCursor, SplitVCursor, SplitHCursor, PointingHandCursor, ForbiddenCursor, WhatsThisCursor, BusyCursor, OpenHandCursor, ClosedHandCursor, LastCursor = ClosedHandCursor, BitmapCursor = 24, CustomCursor = 25#if defined(QT3_SUPPORT) && !defined(Q_MOC_RUN) , arrowCursor = ArrowCursor, upArrowCursor = UpArrowCursor, crossCursor = CrossCursor, waitCursor = WaitCursor, ibeamCursor = IBeamCursor, sizeVerCursor = SizeVerCursor, sizeHorCursor = SizeHorCursor, sizeBDiagCursor = SizeBDiagCursor, sizeFDiagCursor = SizeFDiagCursor, sizeAllCursor = SizeAllCursor, blankCursor = BlankCursor, splitVCursor = SplitVCursor, splitHCursor = SplitHCursor, pointingHandCursor = PointingHandCursor, forbiddenCursor = ForbiddenCursor, whatsThisCursor = WhatsThisCursor#endif }; enum TextFormat { PlainText, RichText, AutoText, LogText }; enum AspectRatioMode { IgnoreAspectRatio, KeepAspectRatio, KeepAspectRatioByExpanding#if defined(QT3_SUPPORT) && !defined(Q_MOC_RUN) , ScaleFree = IgnoreAspectRatio, ScaleMin = KeepAspectRatio, ScaleMax = KeepAspectRatioByExpanding#endif };#ifdef QT3_SUPPORT typedef AspectRatioMode ScaleMode;#endif enum AnchorAttribute { AnchorName, AnchorHref }; enum DockWidgetArea { LeftDockWidgetArea = 0x1, RightDockWidgetArea = 0x2, TopDockWidgetArea = 0x4, BottomDockWidgetArea = 0x8, DockWidgetArea_Mask = 0xf, AllDockWidgetAreas = DockWidgetArea_Mask, NoDockWidgetArea = 0 }; enum DockWidgetAreaSizes { NDockWidgetAreas = 4 }; Q_DECLARE_FLAGS(DockWidgetAreas, DockWidgetArea) enum ToolBarArea { LeftToolBarArea = 0x1, RightToolBarArea = 0x2, TopToolBarArea = 0x4, BottomToolBarArea = 0x8, ToolBarArea_Mask = 0xf, AllToolBarAreas = ToolBarArea_Mask, NoToolBarArea = 0 }; enum ToolBarAreaSizes { NToolBarAreas = 4 }; Q_DECLARE_FLAGS(ToolBarAreas, ToolBarArea)#ifdef QT3_SUPPORT enum Dock { DockUnmanaged, DockTornOff, DockTop, DockBottom, DockRight, DockLeft, DockMinimized , Unmanaged = DockUnmanaged, TornOff = DockTornOff, Top = DockTop, Bottom = DockBottom, Right = DockRight, Left = DockLeft, Minimized = DockMinimized }; // compatibility typedef Dock ToolBarDock;#endif enum DateFormat { TextDate, // default Qt ISODate, // ISO 8601 SystemLocaleDate, // system format LocalDate = SystemLocaleDate, // ## deprecated! LocaleDate // default QLocale format }; enum TimeSpec { LocalTime, UTC }; enum DayOfWeek { Monday = 1, Tuesday = 2, Wednesday = 3, Thursday = 4, Friday = 5, Saturday = 6, Sunday = 7 }; enum ScrollBarPolicy { ScrollBarAsNeeded, ScrollBarAlwaysOff, ScrollBarAlwaysOn };#ifdef QT3_SUPPORT enum BackgroundMode { FixedColor, FixedPixmap, NoBackground, PaletteForeground, PaletteButton, PaletteLight, PaletteMidlight, PaletteDark, PaletteMid, PaletteText, PaletteBrightText, PaletteBase, PaletteBackground, PaletteShadow, PaletteHighlight, PaletteHighlightedText, PaletteButtonText, PaletteLink, PaletteLinkVisited, X11ParentRelative };#endif enum CaseSensitivity { CaseInsensitive, CaseSensitive }; enum Corner { TopLeftCorner = 0x00000, TopRightCorner = 0x00001, BottomLeftCorner = 0x00002, BottomRightCorner = 0x00003#if defined(QT3_SUPPORT) && !defined(Q_MOC_RUN) ,TopLeft = TopLeftCorner, TopRight = TopRightCorner, BottomLeft = BottomLeftCorner, BottomRight = BottomRightCorner#endif }; enum ConnectionType { AutoConnection, DirectConnection, QueuedConnection, AutoCompatConnection }; enum ShortcutContext { WidgetShortcut, WindowShortcut, ApplicationShortcut }; enum FillRule { OddEvenFill, WindingFill }; enum ClipOperation { NoClip, ReplaceClip, IntersectClip, UniteClip }; // Shape = 0x1, BoundingRect = 0x2 enum ItemSelectionMode { ContainsItemShape = 0x0, IntersectsItemShape = 0x1, ContainsItemBoundingRect = 0x2, IntersectsItemBoundingRect = 0x3 }; enum TransformationMode { FastTransformation, SmoothTransformation }; enum FocusReason { MouseFocusReason, TabFocusReason, BacktabFocusReason, ActiveWindowFocusReason, PopupFocusReason, ShortcutFocusReason, MenuBarFocusReason, OtherFocusReason, NoFocusReason }; enum ContextMenuPolicy { NoContextMenu, DefaultContextMenu, ActionsContextMenu, CustomContextMenu, PreventContextMenu }; enum InputMethodQuery { ImMicroFocus, ImFont, ImCursorPosition, ImSurroundingText, ImCurrentSelection }; enum ToolButtonStyle { ToolButtonIconOnly, ToolButtonTextOnly, ToolButtonTextBesideIcon, ToolButtonTextUnderIcon }; enum LayoutDirection { LeftToRight, RightToLeft }; enum DropAction { CopyAction = 0x1, MoveAction = 0x2, LinkAction = 0x4, ActionMask = 0xff, TargetMoveAction = 0x8002, IgnoreAction = 0x0 }; Q_DECLARE_FLAGS(DropActions, DropAction) enum CheckState { Unchecked, PartiallyChecked, Checked }; enum ItemDataRole { DisplayRole = 0, DecorationRole = 1, EditRole = 2, ToolTipRole = 3, StatusTipRole = 4, WhatsThisRole = 5, // Metadata FontRole = 6, TextAlignmentRole = 7, BackgroundColorRole = 8, BackgroundRole = 8, TextColorRole = 9, ForegroundRole = 9, CheckStateRole = 10, // Accessibility AccessibleTextRole = 11, AccessibleDescriptionRole = 12, // More Metadata SizeHintRole = 13, // Reserved UserRole = 32 }; enum ItemFlag { ItemIsSelectable = 1, ItemIsEditable = 2, ItemIsDragEnabled = 4, ItemIsDropEnabled = 8, ItemIsUserCheckable = 16, ItemIsEnabled = 32, ItemIsTristate = 64 }; Q_DECLARE_FLAGS(ItemFlags, ItemFlag) enum MatchFlag { MatchExactly = 0, MatchContains = 1, MatchStartsWith = 2, MatchEndsWith = 3, MatchRegExp = 4, MatchWildcard = 5, MatchFixedString = 8, MatchCaseSensitive = 16, MatchWrap = 32, MatchRecursive = 64 }; Q_DECLARE_FLAGS(MatchFlags, MatchFlag)#if defined(Q_WS_MAC) typedef void * HANDLE;#elif defined(Q_WS_WIN) typedef void *HANDLE;#elif defined(Q_WS_X11) typedef unsigned long HANDLE;#elif defined(Q_WS_QWS) typedef void * HANDLE;#endif typedef WindowFlags WFlags; enum WindowModality { NonModal, WindowModal, ApplicationModal }; enum TextInteractionFlag { NoTextInteraction = 0, TextSelectableByMouse = 1, TextSelectableByKeyboard = 2, LinksAccessibleByMouse = 4, LinksAccessibleByKeyboard = 8, TextEditable = 16, TextEditorInteraction = TextSelectableByMouse | TextSelectableByKeyboard | TextEditable, TextBrowserInteraction = TextSelectableByMouse | LinksAccessibleByMouse | LinksAccessibleByKeyboard }; Q_DECLARE_FLAGS(TextInteractionFlags, TextInteractionFlag)}#ifdef Q_MOC_RUN ;#endifQ_DECLARE_OPERATORS_FOR_FLAGS(Qt::MouseButtons)Q_DECLARE_OPERATORS_FOR_FLAGS(Qt::Orientations)Q_DECLARE_OPERATORS_FOR_FLAGS(Qt::KeyboardModifiers)Q_DECLARE_OPERATORS_FOR_FLAGS(Qt::WindowFlags)Q_DECLARE_OPERATORS_FOR_FLAGS(Qt::Alignment)Q_DECLARE_OPERATORS_FOR_FLAGS(Qt::ImageConversionFlags)Q_DECLARE_OPERATORS_FOR_FLAGS(Qt::DockWidgetAreas)Q_DECLARE_OPERATORS_FOR_FLAGS(Qt::ToolBarAreas)Q_DECLARE_OPERATORS_FOR_FLAGS(Qt::WindowStates)Q_DECLARE_OPERATORS_FOR_FLAGS(Qt::DropActions)Q_DECLARE_OPERATORS_FOR_FLAGS(Qt::ItemFlags)Q_DECLARE_OPERATORS_FOR_FLAGS(Qt::MatchFlags)Q_DECLARE_OPERATORS_FOR_FLAGS(Qt::TextInteractionFlags)typedef bool (*qInternalCallback)(void **);class Q_CORE_EXPORT QInternal {public: enum PaintDeviceFlags { UnknownDevice = 0x00, Widget = 0x01, Pixmap = 0x02, Image = 0x03, Printer = 0x04, Picture = 0x05, Pbuffer = 0x06, // GL pbuffer FramebufferObject = 0x07, // GL framebuffer object CustomRaster = 0x08 }; enum RelayoutType { RelayoutNormal, RelayoutDragging, RelayoutDropped }; enum Callback { ConnectCallback, DisconnectCallback, AdoptCurrentThread, LastCallback }; enum InternalFunction { CreateThreadForAdoption, RefAdoptedThread, DerefAdoptedThread, SetCurrentThreadToMainThread, LastInternalFunction }; static bool registerCallback(Callback, qInternalCallback); static bool unregisterCallback(Callback, qInternalCallback); static bool activateCallbacks(Callback, void **); static bool callFunction(InternalFunction func, void **);};#ifdef QT3_SUPPORTtypedef qint32 QCOORD; // coordinate typeenum { QCOORD_MAX = 2147483647, QCOORD_MIN = -QCOORD_MAX - 1};#endifQT_END_HEADER#endif // QNAMESPACE_H
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -