📄 qwtknob.3
字号:
.TH "QwtKnob" 3 "4 Nov 2003" "Qwt User's Guide" \" -*- nroff -*-.ad l.nh.SH NAMEQwtKnob \- .SH SYNOPSIS.br.PPInherits \fBQwtSliderBase\fP, and \fBQwtScaleIf\fP..PP.SH "Detailed Description".PP The Knob Widget. The QwtKnob widget imitates look and behaviour of a volume knob on a radio. It contains a scale around the knob which is set up automatically or can be configured manually (see \fBQwtScaleIf\fP). Automatic scrolling is enabled when the user presses a mouse button on the scale. For a description of signals, slots and other members, see \fBQwtSliderBase\fP..PP\fBSee also:\fP.RS 4\fBQwtSliderBase\fP and \fBQwtScaleIf\fP for the descriptions of the inherited members. .RE.PP.PP.SS "Public Types".in +1c.ti -1c.RI "enum \fBSymbol\fP { \fBLine\fP, \fBDot\fP }".br.in -1c.SS "Public Member Functions".in +1c.ti -1c.RI "\fBQwtKnob\fP (QWidget *parent=0, const char *name=0)".br.ti -1c.RI "virtual \fB~QwtKnob\fP ()".br.ti -1c.RI "void \fBsetKnobWidth\fP (int w)".br.ti -1c.RI "void \fBsetTotalAngle\fP (double angle)".br.ti -1c.RI "void \fBsetBorderWidth\fP (int bw)".br.ti -1c.RI "int \fBknobWidth\fP () const ".br.ti -1c.RI "double \fBtotalAngle\fP () const ".br.ti -1c.RI "int \fBborderWidth\fP () const ".br.ti -1c.RI "void \fBsetSymbol\fP (\fBSymbol\fP)".br.ti -1c.RI "\fBSymbol\fP \fBsymbol\fP () const ".br.ti -1c.RI "virtual QSize \fBsizeHint\fP () const ".br.ti -1c.RI "virtual QSize \fBminimumSizeHint\fP () const ".br.ti -1c.RI "virtual QSizePolicy \fBsizePolicy\fP () const ".br.in -1c.SS "Protected Member Functions".in +1c.ti -1c.RI "virtual void \fBpaintEvent\fP (QPaintEvent *e)".br.ti -1c.RI "virtual void \fBresizeEvent\fP (QResizeEvent *e)".br.ti -1c.RI "void \fBdraw\fP (QPainter *p, const QRect &ur)".br.ti -1c.RI "void \fBdrawKnob\fP (QPainter *p, const QRect &r)".br.ti -1c.RI "void \fBdrawMarker\fP (QPainter *p, double arc, const QColor &c)".br.in -1c.SH "Member Enumeration Documentation".PP .SS "enum \fBQwtKnob::Symbol\fP".PPSymbol .PP\fBSee also:\fP.RS 4\fBQwtKnob::QwtKnob()\fP .RE.PP.SH "Constructor & Destructor Documentation".PP .SS "QwtKnob::QwtKnob (QWidget * parent = 0, const char * name = 0)".PPConstructor. \fBParameters:\fP.RS 4\fIparent\fP Parent widget .br\fIname\fP Name .RE.PP.SS "QwtKnob::~\fBQwtKnob\fP ()\fC [virtual]\fP".PPDestructor. .SH "Member Function Documentation".PP .SS "int QwtKnob::borderWidth () const".PPReturn the border width. .SS "void QwtKnob::draw (QPainter * painter, const QRect & ur)\fC [protected]\fP".PPRepaint the knob. .SS "void QwtKnob::drawKnob (QPainter * p, const QRect & r)\fC [protected]\fP".PPDraw the knob. \fBParameters:\fP.RS 4\fIp\fP painter .br\fIr\fP borders of the knob .RE.PP.SS "void QwtKnob::drawMarker (QPainter * p, double arc, const QColor & c)\fC [protected]\fP".PPDraw the marker at the knob's front. \fBParameters:\fP.RS 4\fIp\fP Painter .br\fIarc\fP Angle of the marker .br\fIc\fP Marker color .RE.PP.SS "int QwtKnob::knobWidth () const".PPReturn the width of the knob. .SS "QSize QwtKnob::minimumSizeHint () const\fC [virtual]\fP".PPReturn a minimum size hint. \fBWarning:\fP.RS 4The return value of \fBQwtKnob::minimumSizeHint()\fP depends on the font and the scale. .RE.PP.SS "void QwtKnob::paintEvent (QPaintEvent * e)\fC [protected, virtual]\fP".PPRepaint the knob. .SS "void QwtKnob::resizeEvent (QResizeEvent * e)\fC [protected, virtual]\fP".PPQt Resize Event. .SS "void QwtKnob::setBorderWidth (int bw)".PPSet the knob's border width. \fBParameters:\fP.RS 4\fIbw\fP new border width .RE.PP.SS "void QwtKnob::setKnobWidth (int w)".PPChange the knob's width. The specified width must be >= 5, or it will be clipped. .PP\fBParameters:\fP.RS 4\fIw\fP New width .RE.PP.SS "void QwtKnob::setSymbol (\fBQwtKnob::Symbol\fP s)".PPSet the symbol of the knob. \fBSee also:\fP.RS 4\fBQwtKnob::symbol()\fP .RE.PP.SS "void QwtKnob::setTotalAngle (double angle)".PPSet the total angle by which the knob can be turned. \fBParameters:\fP.RS 4\fIangle\fP Angle in degrees..RE.PPThe default angle is 270 degrees. It is possible to specify an angle of more than 360 degrees so that the knob can be turned several times around its axis. .SS "QSize QwtKnob::sizeHint () const\fC [virtual]\fP".PP\fBReturns:\fP.RS 4\fBQwtKnob::minimumSizeHint()\fP .RE.PP.SS "QSizePolicy QwtKnob::sizePolicy () const\fC [virtual]\fP".PPReturn Fixed/Fixed. .SS "\fBQwtKnob::Symbol\fP QwtKnob::symbol () const".PP\fBReturns:\fP.RS 4symbol of the knob .RE.PP\fBSee also:\fP.RS 4\fBQwtKnob::setSymbol()\fP .RE.PP.SS "double QwtKnob::totalAngle () const".PPReturn the total angle. .SH "Author".PP Generated automatically by Doxygen for Qwt User's Guide from the source code.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -