📄 qt.3qt
字号:
\fCQt::Key_eacute\fR.TP\fCQt::Key_ecircumflex\fR.TP\fCQt::Key_ediaeresis\fR.TP\fCQt::Key_igrave\fR.TP\fCQt::Key_iacute\fR.TP\fCQt::Key_icircumflex\fR.TP\fCQt::Key_idiaeresis\fR.TP\fCQt::Key_eth\fR.TP\fCQt::Key_ntilde\fR.TP\fCQt::Key_ograve\fR.TP\fCQt::Key_oacute\fR.TP\fCQt::Key_ocircumflex\fR.TP\fCQt::Key_otilde\fR.TP\fCQt::Key_odiaeresis\fR.TP\fCQt::Key_division\fR.TP\fCQt::Key_oslash\fR.TP\fCQt::Key_ugrave\fR.TP\fCQt::Key_uacute\fR.TP\fCQt::Key_ucircumflex\fR.TP\fCQt::Key_udiaeresis\fR.TP\fCQt::Key_yacute\fR.TP\fCQt::Key_thorn\fR.TP\fCQt::Key_ydiaeresis\fR.TP\fCQt::Key_unknown\fR.TP\fCQt::Key_Direction_L\fR - internal use only.TP\fCQt::Key_Direction_R\fR - internal use only.SH "Qt::Modifier"This enum type describes the keyboard modifier keys supported by Qt. The currently defined values are:.TP\fCQt::SHIFT\fR - the Shift keys provided on all standard keyboards..TP\fCQt::CTRL\fR - the Ctrl keys..TP\fCQt::ALT\fR - the normal Alt keys, but not e.g. AltGr..TP\fCQt::MODIFIER_MASK\fR - is a mask of Shift, Ctrl and Alt..TP\fCQt::UNICODE_ACCEL\fR - the accelerator is specified as a Unicode code point, not as a Qt Key..SH "Qt::Orientation"This type is used to signify an object's orientation..TP\fCQt::Horizontal\fR.TP\fCQt::Vertical\fR.PPOrientation is used with QScrollBar for example..SH "Qt::PaintUnit".TP\fCQt::PixelUnit\fR.TP\fCQt::LoMetricUnit\fR - \fIobsolete\fR.TP\fCQt::HiMetricUnit\fR - \fIobsolete\fR.TP\fCQt::LoEnglishUnit\fR - \fIobsolete\fR.TP\fCQt::HiEnglishUnit\fR - \fIobsolete\fR.TP\fCQt::TwipsUnit\fR - \fIobsolete\fR.SH "Qt::PenCapStyle"This enum type defines the pen cap styles supported by Qt, i.e. the line end caps that can be drawn using QPainter. The available styles are:.TP\fCQt::FlatCap\fR - a square line end that does not cover the end point of the line..TP\fCQt::SquareCap\fR - a square line end that covers the end point and extends beyond it with half the line width..TP\fCQt::RoundCap\fR - a rounded line end..TP\fCQt::MPenCapStyle\fR - mask of the pen cap styles..SH "Qt::PenJoinStyle"This enum type defines the pen join styles supported by Qt, i.e. which joins between two connected lines can be drawn using QPainter. The available styles are:.TP\fCQt::MiterJoin\fR - The outer edges of the lines are extended to meet at an angle, and this area is filled..TP\fCQt::BevelJoin\fR - The triangular notch between the two lines is filled..TP\fCQt::RoundJoin\fR - A circular arc between the two lines is filled..TP\fCQt::MPenJoinStyle\fR - mask of the pen join styles..SH "Qt::PenStyle"This enum type defines the pen styles that can be drawn using QPainter. The styles are.TP\fCQt::NoPen\fR - no line at all. For example, QPainter::drawRect() fills but does not draw any boundary line..TP\fCQt::SolidLine\fR - a simple line..TP\fCQt::DashLine\fR - dashes separated by a few pixels..TP\fCQt::DotLine\fR - dots separated by a few pixels..TP\fCQt::DashDotLine\fR - alternate dots and dashes..TP\fCQt::DashDotDotLine\fR - one dash, two dots, one dash, two dots..TP\fCQt::MPenStyle\fR - mask of the pen styles..SH "Qt::RasterOp".PPThis enum type is used to describe the way things are written to the paint device. Each bit of the \fIsrc\fR (what you write) interacts with the corresponding bit of the \fIdst\fR pixel. The currently defined values are:.TP\fCQt::CopyROP\fR - dst = src.TP\fCQt::OrROP\fR - dst = src OR dst.TP\fCQt::XorROP\fR - dst = src XOR dst.TP\fCQt::NotAndROP\fR - dst = (NOT src) AND dst.TP\fCQt::EraseROP\fR - an alias for NotAndROP.TP\fCQt::NotCopyROP\fR - dst = NOT src.TP\fCQt::NotOrROP\fR - dst = (NOT src) OR dst.TP\fCQt::NotXorROP\fR - dst = (NOT src) XOR dst.TP\fCQt::AndROP\fR - dst = src AND dst.TP\fCQt::NotEraseROP\fR - an alias for AndROP.TP\fCQt::NotROP\fR - dst = NOT dst.TP\fCQt::ClearROP\fR - dst = 0.TP\fCQt::SetROP\fR - dst = 1.TP\fCQt::NopROP\fR - dst = dst.TP\fCQt::AndNotROP\fR - dst = src AND (NOT dst).TP\fCQt::OrNotROP\fR - dst = src OR (NOT dst).TP\fCQt::NandROP\fR - dst = NOT (src AND dst).TP\fCQt::NorROP\fR - dst = NOT (src OR dst).PPBy far the most useful ones are CopyROP and XorROP..SH "Qt::StringComparisonMode"This enum type is used to set the string comparison mode when searching for an item. This is implemented in QListBox, QListView and QIconView, for example. We'll refer to the string being searched as the 'target' string..TP\fCQt::CaseSensitive\fR - The strings must match case sensitively..TP\fCQt::ExactMatch\fR - The target and search strings must match exactly..TP\fCQt::BeginsWith\fR - The target string begins with the search string..TP\fCQt::EndsWith\fR - The target string ends with the search string..TP\fCQt::Contains\fR - The target string contains the search string..PPIf you OR these flags together (excluding CaseSensitive), the search criteria be applied in the following order: ExactMatch, BeginsWith, EndsWith, Contains..PPMatching is case-insensitive unless CaseSensitive is set. CaseSensitive may be OR-ed with any combination of the other flags..SH "Qt::TextFlags"This enum type is used to define some modifier flags. Some of these flags only make sense in the context of printing:.TP\fCQt::SingleLine\fR - Treats all whitespace as spaces and prints just one line..TP\fCQt::DontClip\fR - If it's impossible to stay within the given bounds, it prints outside..TP\fCQt::ExpandTabs\fR - Makes the U+0009 (ASCII tab) character move to the next tab stop..TP\fCQt::ShowPrefix\fR - Displays the string "&P" as an underlined P (see QButton for an example). For an ampersand, use "&&"..TP\fCQt::WordBreak\fR - Breaks lines at appropriate points, e.g. at word boundaries..TP\fCQt::BreakAnywhere\fR - Breaks lines anywhere, even within words..TP\fCQt::NoAccel\fR - Synonym for ShowPrefix..TP\fCQt::DontPrint\fR - (internal).PPYou can use as many modifier flags as you want, except that SingleLine and WordBreak cannot be combined..PPFlags that are inappropriate for a given use (e.g. ShowPrefix to QGridLayout::addWidget()) are generally ignored..SH "Qt::TextFormat"This enum is used in widgets that can display both plain text and rich text, e.g. QLabel. It is used for deciding whether a text string should be interpreted as one or the other. This is normally done by passing one of the enum values to a setTextFormat() function..TP\fCQt::PlainText\fR - The text string is interpreted as a plain text string..TP\fCQt::RichText\fR - The text string is interpreted as a rich text string using the current QStyleSheet::defaultSheet()..TP\fCQt::AutoText\fR - The text string is interpreted as for RichText if QStyleSheet::mightBeRichText() returns TRUE, otherwise as for PlainText..SH "Qt::UIEffect".TP\fCQt::UI_General\fR.TP\fCQt::UI_AnimateMenu\fR.TP\fCQt::UI_FadeMenu\fR.TP\fCQt::UI_AnimateCombo\fR.TP\fCQt::UI_AnimateTooltip\fR.TP\fCQt::UI_FadeTooltip\fR.SH "Qt::WidgetFlags".PPThis enum type is used to specify various window-system properties of the widget. They are fairly unusual but necessary in a few cases. Some of these flags depend on whether the underlying window manager supports them..PPThe main types are.TP\fCQt::WType_TopLevel\fR - indicates that this widget is a top-level widget, usually with a window-system frame and so on..TP\fCQt::WType_Dialog\fR - indicates that this widget is a secondary top-level widget. When combined with WShowModal, the dialog becomes a modal dialog i.e. prevents any other top-level window in the application from getting any input. WType_Dialog implies WType_TopLevel..TP\fCQt::WType_Popup\fR - indicates that this widget is a popup top-level window, i.e. that it is modal, but has a window system frame appropriate for popup menus. WType_Popup implies WType_TopLevel..TP\fCQt::WType_Desktop\fR - indicates that this widget is the desktop. See also WPaintDesktop below. WType_Desktop implies WType_TopLevel..PPThere are also a number of flags which you can use to customize the appearance of top-level windows. These have no effect on other windows:.TP\fCQt::WStyle_Customize\fR - indicates that the \fCWStyle_*\fR flags should be used to build the window instead of the default flags..TP\fCQt::WStyle_NormalBorder\fR - gives the window a normal border. Cannot be combined with WStyle_DialogBorder or WStyle_NoBorder..TP\fCQt::WStyle_DialogBorder\fR - gives the window a thin dialog border. Cannot be combined with WStyle_NormalBorder or WStyle_NoBorder..TP\fCQt::WStyle_NoBorder\fR - produces a borderless window. Note that the user cannot move or resize a borderless window via the window system. Cannot be combined with WStyle_NormalBorder or WStyle_DialogBorder. On Windows, the flag works fine. On X11, the result of the flag is dependent on the window manager and its ability to understand MOTIF and/or NETWM hints: most existing modern window managers can handle this. With WX11BypassWM, you can bypass the window manager completely. This results in a borderless window that is not managed at all (i.e. no keyboard input unless you call setActiveWindow() manually)..TP\fCQt::WStyle_NoBorderEx\fR - this value is obsolete. It has the same effect as using WStyle_NoBorder..TP\fCQt::WStyle_Title\fR - gives the window a title bar..TP\fCQt::WStyle_SysMenu\fR - adds a window system menu..TP\fCQt::WStyle_Minimize\fR - adds a minimize button. Note that on Windows this has to be combined with WStyle_SysMenu for it to work..TP\fCQt::WStyle_Maximize\fR - adds a maximize button. Note that on Windows this has to be combined with WStyle_SysMenu for it to work..TP\fCQt::WStyle_MinMax\fR - is equal to \fCWStyle_Minimize|WStyle_Maximize\fR. Note that on Windows this has to be combined with WStyle_SysMenu to work..TP\fCQt::WStyle_ContextHelp\fR - adds a context help button to dialogs..TP\fCQt::WStyle_Tool\fR - makes the window a tool window. A tool window is often a small window with a smaller than usual title bar and decoration, typically used for collections of tool buttons. It there is a parent, the tool window will always be kept on top of it. If there isn't a parent, you may consider passing WStyle_StaysOnTop as well. If the window system supports it, a tool window can be decorated with a somewhat lighter frame. It can also be combined with WStyle_NoBorder..TP\fCQt::WStyle_StaysOnTop\fR - informs the window system that the window should stay on top of all other windows..TP\fCQt::WStyle_Dialog\fR - indicates that the window is a logical subwindow of its parent (in other words, a dialog). The window will not get its own taskbar entry and will be kept on top of its parent by the window system. Usually it will also be minimized when the parent is minimized. If not customized, the window is decorated with a slightly simpler title bar. This is the flag QDialog uses..PPModifier flags:.TP\fCQt::WDestructiveClose\fR - makes Qt delete this object when the object has accepted closeEvent(), or when the widget tried to ignore closeEvent() but could not..TP\fCQt::WPaintDesktop\fR - gives this widget paint events for the desktop..TP\fCQt::WPaintUnclipped\fR - makes all painters operating on this widget unclipped. Children of this widget or other widgets in front of it do not clip the area the painter can paint on..TP\fCQt::WPaintClever\fR - indicates that Qt should \fInot\fR try to optimize repainting for the widget, but instead pass on window system repaint events directly. (This tends to produce more events and smaller repaint regions.).TP\fCQt::WResizeNoErase\fR - indicates that resizing the widget should not erase it. This allows smart-repainting to avoid flicker..TP\fCQt::WMouseNoMask\fR - indicates that even if the widget has a mask, it wants mouse events for its entire rectangle..TP\fCQt::WStaticContents\fR - indicates that the widget contents are north-west aligned and static. On resize, such a widget will receive paint events only for the newly visible part of itself..TP\fCQt::WRepaintNoErase\fR - indicates that the widget paints all its pixels. Updating, scrolling and focus changes should therefore not erase the widget. This allows smart-repainting to avoid flicker..TP\fCQt::WGroupLeader\fR - makes this widget or window a group leader. Modality of secondary windows only affects windows within the same group..PPMiscellaneous flags.TP\fCQt::WShowModal\fR - see WType_Dialog.PPInternal flags..TP\fCQt::WNoMousePropagation\fR.TP\fCQt::WStaticContents\fR.TP\fCQt::WStyle_Reserved\fR.TP\fCQt::WSubWindow\fR.TP\fCQt::WType_Modal\fR.TP\fCQt::WWinOwnDC\fR.TP\fCQt::WX11BypassWM\fR.TP\fCQt::WStyle_Mask\fR.TP\fCQt::WType_Mask\fR.SH "Qt::WidgetState"Internal flags..TP\fCQt::WState_Created\fR.TP\fCQt::WState_Disabled\fR.TP\fCQt::WState_Visible\fR.TP\fCQt::WState_ForceHide\fR.TP\fCQt::WState_OwnCursor\fR.TP\fCQt::WState_MouseTracking\fR.TP\fCQt::WState_CompressKeys\fR.TP\fCQt::WState_BlockUpdates\fR.TP\fCQt::WState_InPaintEvent\fR.TP\fCQt::WState_Reparented\fR.TP\fCQt::WState_ConfigPending\fR.TP\fCQt::WState_Resized\fR.TP\fCQt::WState_AutoMask\fR.TP\fCQt::WState_Polished\fR.TP\fCQt::WState_DND\fR.TP\fCQt::WState_Reserved0\fR.TP\fCQt::WState_Reserved1\fR.TP\fCQt::WState_Reserved2\fR.TP\fCQt::WState_Reserved3\fR.TP\fCQt::WState_Maximized\fR.TP\fCQt::WState_Minimized\fR.TP\fCQt::WState_ForceDisabled\fR.TP\fCQt::WState_Exposed\fR.TP\fCQt::WState_HasMouse\fR.SH "Qt::WindowsVersion".TP\fCQt::WV_32s\fR.TP\fCQt::WV_95\fR.TP\fCQt::WV_98\fR.TP\fCQt::WV_Me\fR.TP\fCQt::WV_DOS_based\fR.TP\fCQt::WV_NT\fR.TP\fCQt::WV_2000\fR.TP\fCQt::WV_XP\fR.TP\fCQt::WV_NT_based\fR.PP.SH "SEE ALSO".BR http://doc.trolltech.com/qt.html.BR http://www.trolltech.com/faq/tech.html.SH COPYRIGHTCopyright 1992-2001 Trolltech AS, http://www.trolltech.com. See thelicense file included in the distribution for a complete licensestatement..SH AUTHORGenerated automatically from the source code..SH BUGSIf you find a bug in Qt, please report it as described in.BR http://doc.trolltech.com/bughowto.html .Good bug reports help us to help you. Thank you..PThe definitive Qt documentation is provided in HTML format; it islocated at $QTDIR/doc/html and can be read using Qt Assistant or witha web browser. This man page is provided as a convenience for thoseusers who prefer man pages, although this format is not officiallysupported by Trolltech. .PIf you find errors in this manual page, please report them to.BR qt-bugs@trolltech.com .Please include the name of the manual page (qt.3qt) and the Qtversion (3.0.3).
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -