⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 qt.3qt

📁 Trolltech公司发布的基于C++图形开发环境
💻 3QT
📖 第 1 页 / 共 2 页
字号:
\fCRoundCap\fR - A rounded line end..IP.SH "Qt::PenJoinStyle"This enum type defines the pen join styles supported by Qt; ie. what sorts of joins between two connected lines that can be drawn using QPainter. The available styles are: .TP\fCMiterJoin\fR - The outer edges of the lines are extended to meet at an angle, and this area is filled..TP\fCBevelJoin\fR - The triangular notch between the two lines is filled..TP\fCRoundJoin\fR - A circular arc between the two lines is filled..IP.SH "Qt::PenStyle"This enum type defines the pen styles supported by Qt; ie. what sorts of lines that can be drawn using QPainter. The current styles are: .TP\fCNoPen\fR - no line at all. For example, QPainter::drawRect() fills but does not draw any explicit boundary line..TP\fCSolidLine\fR - a simple line..TP\fCDashLine\fR - dashes, separated by a few pixels..TP\fCDotLine\fR - dots, separated by a few pixels..TP\fCDashDotLine\fR - alternately dots and dashes..TP\fCDashDotDotLine\fR - one dash, two dots, one dash, two dots....IP.SH "Qt::RasterOp"This 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\fCCopyROP\fR - dst = src.TP\fCOrROP\fR - dst = src OR dst.TP\fCXorROP\fR - dst = src XOR dst.TP\fCNotAndROP\fR - dst = (NOT src) AND dst.TP\fCEraseROP\fR - an alias for \fCNotAndROP\fR.TP\fCNotCopyROP\fR - dst = NOT src.TP\fCNotOrROP\fR - dst = (NOT src) OR dst.TP\fCNotXorROP\fR - dst = (NOT src) XOR dst.TP\fCAndROP\fR - dst = src AND dst.TP\fCNotEraseROP\fR - an alias for \fCAndROP\fR.TP\fCNotROP\fR - dst = NOT dst.TP\fCClearROP\fR - dst = 0.TP\fCSetROP\fR - dst = 1.TP\fCNopROP\fR - dst = dst.TP\fCAndNotROP\fR - dst = src AND (NOT dst).TP\fCOrNotROP\fR - dst = src OR (NOT dst).TP\fCNandROP\fR - dst = NOT (src AND dst).TP\fCNorROP\fR - dst = NOT (src OR dst).IP.PPBy far the most useful ones are \fCCopyROP\fR and \fCXorROP.\fR.PPOn Qt/Embedded, only \fCCopyROP, XorROP,\fR and \fCNotROP\fR are supported..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 the one or the other. This is normally done by passing one of the enum values to a setTextFormat() function..TP\fCPlainText\fR - The text string is interpreted as a normal text string..TP\fCRichText\fR - The text string is interpreted as a rich text according to the current QStyleSheet::defaultSheet()..TP\fCAutoText\fR - The text string is interpreted as for \fCRichText\fR if QStyleSheet::mightBeRichText() returns TRUE, otherwise as for \fCPlainText.\fR.SH "Qt::WidgetFlags"This enum type is used to specify various window-system properties of the widget. Mostly they are fairly unusual, but necessary in a few cases..PPThe main types are .TP\fCWType_TopLevel\fR - indicates that this widget is a top-level widget, usually with a window-system frame and so on..TP\fCWType_Modal\fR - indicates that this widget is a modal top-level widget, ie. that it prevents widgets in all other top-level widget from getting any input. \fCWType_Modal\fR inplies \fCWStyle_Dialog.\fR.TP\fCWType_Popup\fR - indicates that this widget is a popup top-level window, ie. that it is modal, but has a window system frame appropriate for popup menus..TP\fCWType_Desktop\fR - indicates that this widget is the desktop. See also \fCWPaintDesktop\fR below..IPThere are also a number of flags to let you customize the appearance of top-level windows. These have no effect on other windows..TP\fCWStyle_Customize\fR - indicates that instead of the default, the WStyle_* flags should be used to build the window..TP\fCWStyle_NormalBorder\fR - gives the window a normal border. Cannot be combined with \fCWStyle_DialogBorder\fR or \fCWStyle_NoBorder.\fR.TP\fCWStyle_DialogBorder\fR - gives the window a thin dialog border. Cannot be combined with \fCWStyle_NormalBorder\fR or \fCWStyle_NoBorder.\fR.TP\fCWStyle_NoBorder\fR - gives a borderless window. Note that the user cannot move or resize a borderless window via the window system. Cannot be combined with \fCWStyle_NormalBorder\fR or \fCWStyle_DialogBorder.\fR On Windows, the flag works fine. On X11, it bypasses the window manager completely. This results in a borderless window, but also in a window that is not managed at all (i.e. for example no keyboard focus unless you call setActiveWindow() manually. ) For compatibility, the flag was not changed for Qt-2.1. We suggest using WStyle_NoBorderEx instead..TP\fCWStyle_NoBorderEx\fR - gives a borderless window. Note that the user cannot move or resize a borderless window via the window system. Cannot be combined with \fCWStyle_NormalBorder\fR or \fCWStyle_DialogBorder.\fR On X11, the result of the flag is depending on the window manager and its ability to understand MOTIF hints to some degree. Most existing modern window managers do this. With \fCWX11BypassWM,\fR you can bypass the window manager completely. This results in a borderless window for sure, but also in a window that is not managed at all (i.e. for example no keyboard input unless you call setActiveWindow() manually ).TP\fCWStyle_Title\fR - gives the window a title bar..TP\fCWStyle_SysMenu\fR - adds a window system menu..TP\fCWStyle_Minimize\fR - adds a minimize button. Note that on Windows this has to be combined with WStyle_SysMenu for it to work..TP\fCWStyle_Maximize\fR - adds a maximize button. Note that on Windows this has to be combined with WStyle_SysMenu for it to work..TP\fCWStyle_MinMax\fR - is equal to \fCWStyle_Minimize|WStyle_Maximize.\fR Note that on Windows this has to be combined with WStyle_SysMenu for it to work..TP\fCWStyle_ContextHelp\fR - adds a context help button to dialogs..TP\fCWStyle_Tool\fR - makes the window a tool window. A tool window is a small window that lives for a short time and it is typically used for creating popup windows. 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 is be decorated with a somewhat lighter frame. It can, however, be combined with \fCWStyle_NoBorder\fR as well..TP\fCWStyle_StaysOnTop\fR - informs the window system that the window should stay on top of all other windows..TP\fCWStyle_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 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..IPFinally, there are some modifier flags: .TP\fCWDestructiveClose\fR - makes Qt delete this object when the object has accepted closeEvent(), or when the widget tried to ignore closeEvent() but could not..TP\fCWPaintDesktop\fR - gives this widget paint events for the desktop..TP\fCWPaintUnclipped\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\fCWPaintClever\fR - indicates that Qt should not 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\fCWResizeNoErase\fR - indicates that resizing the widget should not erase it. This allows smart-repainting to avoid flicker..TP\fCWMouseNoMask\fR - indicates that even if the widget has a mask, it wants mouse events for its entire rectangle..TP\fCWNorthWestGravity\fR - indicates that the widget contents is north-west aligned and static. On resize, such a widget will receive paint events only for the newly visible part of itself..TP\fCWRepaintNoErase\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\fCWGroupLeader\fR - makes this widget or window a group leader. Modality of secondary windows only affects windows within the same group..IP.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 make our job much simpler. Thank you..PIn case of content or formattting problems with this manual page, pleasereport them to.BR qt-bugs@trolltech.com .Please include the name of the manual page (qt.3qt) and the Qtversion (2.3.7).

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -