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

📄 qwtwheel.3

📁 软件无线电的平台
💻 3
字号:
.TH "QwtWheel" 3 "4 Nov 2003" "Qwt User's Guide" \" -*- nroff -*-.ad l.nh.SH NAMEQwtWheel \- .SH SYNOPSIS.br.PPInherits \fBQwtSliderBase\fP..PP.SH "Detailed Description".PP The Wheel Widget. The wheel widget can be used to change values over a very large range in very small steps. Using the setMass member, it can be configured as a flywheel..PP\fBSee also:\fP.RS 4The radio example. .RE.PP.PP.SS "Public Member Functions".in +1c.ti -1c.RI "\fBQwtWheel\fP (QWidget *parent=0, const  char *name=0)".br.ti -1c.RI "virtual \fB~QwtWheel\fP ()".br.ti -1c.RI "virtual void \fBsetOrientation\fP (Qt::Orientation)".br.ti -1c.RI "double \fBtotalAngle\fP () const ".br.ti -1c.RI "double \fBviewAngle\fP () const ".br.ti -1c.RI "int \fBtickCnt\fP () const ".br.ti -1c.RI "int \fBinternalBorder\fP () const ".br.ti -1c.RI "double \fBmass\fP () const ".br.ti -1c.RI "void \fBsetTotalAngle\fP (double angle)".br.ti -1c.RI "void \fBsetTickCnt\fP (int cnt)".br.ti -1c.RI "void \fBsetViewAngle\fP (double angle)".br.ti -1c.RI "void \fBsetInternalBorder\fP (int width)".br.ti -1c.RI "void \fBsetMass\fP (double val)".br.ti -1c.RI "void \fBsetWheelWidth\fP (int w)".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 \fBresizeEvent\fP (QResizeEvent *e)".br.ti -1c.RI "virtual void \fBpaintEvent\fP (QPaintEvent *e)".br.ti -1c.RI "void \fBlayoutWheel\fP (bool update=TRUE)".br.ti -1c.RI "void \fBdraw\fP (QPainter *p, const  QRect &update_rect)".br.ti -1c.RI "void \fBdrawWheel\fP (QPainter *p, const  QRect &r)".br.ti -1c.RI "void \fBdrawWheelBackground\fP (QPainter *p, const  QRect &r)".br.ti -1c.RI "void \fBsetColorArray\fP ()".br.ti -1c.RI "virtual void \fBvalueChange\fP ()".br.ti -1c.RI "virtual void \fBpaletteChange\fP (const  QPalette &)".br.ti -1c.RI "virtual double \fBgetValue\fP (const  QPoint &p)".br.ti -1c.RI "virtual void \fBgetScrollMode\fP (const  QPoint &p, int &scrollMode, int &direction)".br.in -1c.SH "Constructor & Destructor Documentation".PP .SS "QwtWheel::QwtWheel (QWidget * parent = 0, const char * name = 0)".PPConstructor. .SS "QwtWheel::~\fBQwtWheel\fP ()\fC [virtual]\fP".PPDestructor. .SH "Member Function Documentation".PP .SS "void QwtWheel::draw (QPainter * p, const QRect & update_rect)\fC [protected]\fP".PPRedraw panel and wheel. .SS "void QwtWheel::drawWheel (QPainter * p, const QRect & r)\fC [protected]\fP".PPRedraw the wheel. \fBParameters:\fP.RS 4\fIp\fP painter .br\fIr\fP contents rectangle .RE.PP.SS "void QwtWheel::drawWheelBackground (QPainter * p, const QRect & r)\fC [protected]\fP".PPDraw the Wheel's background gradient. .SS "void QwtWheel::getScrollMode (const QPoint & p, int & scrollMode, int & direction)\fC [protected, virtual]\fP".PPDetermine the scrolling mode and direction corresponding to a specified point. \fBParameters:\fP.RS 4\fIp\fP point .br\fIscrollMode\fP scrolling mode .br\fIdirection\fP direction .RE.PPImplements \fBQwtSliderBase\fP..SS "double QwtWheel::getValue (const QPoint & p)\fC [protected, virtual]\fP".PPDetermine the value corresponding to a specified point. Implements \fBQwtSliderBase\fP..SS "void QwtWheel::layoutWheel (bool update = TRUE)\fC [protected]\fP".PPRecalculate the slider's geometry and layout based on. .SS "double QwtWheel::mass () const\fC [virtual]\fP".PP\fBReturns:\fP.RS 4mass .RE.PPReimplemented from \fBQwtSliderBase\fP..SS "QSize QwtWheel::minimumSizeHint () const\fC [virtual]\fP".PPReturn a minimum size hint. \fBWarning:\fP.RS 4The return value is based on the wheel width. .RE.PP.SS "void QwtWheel::paintEvent (QPaintEvent * e)\fC [protected, virtual]\fP".PPQt Paint Event. .SS "void QwtWheel::paletteChange (const QPalette &)\fC [protected, virtual]\fP".PPCall update() when the palette changes. .SS "void QwtWheel::resizeEvent (QResizeEvent * e)\fC [protected, virtual]\fP".PPQt Resize Event. .SS "void QwtWheel::setColorArray ()\fC [protected]\fP".PPSet up the color array for the background pixmap. .SS "void QwtWheel::setInternalBorder (int w)".PPSet the internal border width of the wheel. The internal border must not be smaller than 1 and is limited in dependence on the wheel's size. Values outside the allowed range will be clipped..PPThe internal border defaults to 2. .PP\fBParameters:\fP.RS 4\fIw\fP border width .RE.PP.SS "void QwtWheel::setMass (double val)\fC [virtual]\fP".PPSet the mass of the wheel. Assigning a mass turns the wheel into a flywheel. .PP\fBParameters:\fP.RS 4\fIval\fP the wheel's mass .RE.PPReimplemented from \fBQwtSliderBase\fP..SS "void QwtWheel::setOrientation (Qt::Orientation o)\fC [virtual]\fP".PPSet the wheel's orientation. \fBParameters:\fP.RS 4\fIo\fP Orientation. Allowed values are Qt::Horizontal and Qt::Vertical. Defaults to Qt::Horizontal. .RE.PP\fBSee also:\fP.RS 4\fBQwtSliderBase::orientation()\fP .RE.PP.SS "void QwtWheel::setTickCnt (int cnt)".PPAdjust the number of grooves in the wheel's surface. The number of grooves is limited to 6 <= cnt <= 50. Values outside this range will be clipped. The default value is 10. .PP\fBParameters:\fP.RS 4\fIcnt\fP Number of grooves per 360 degrees .RE.PP.SS "void QwtWheel::setTotalAngle (double angle)".PPSet the total angle which the wheel can be turned. One full turn of the wheel corresponds to an angle of 360 degrees. A total angle of n*360 degrees means that the wheel has to be turned n times around its axis to get from the minimum value to the maximum value..PPThe default setting of the total angle is 360 degrees. .PP\fBParameters:\fP.RS 4\fIangle\fP total angle in degrees .RE.PP.SS "void QwtWheel::setViewAngle (double angle)".PPSpecify the visible portion of the wheel. You may use this function for fine-tuning the appearance of the wheel. The default value is 175 degrees. The value is limited from 10 to 175 degrees. .PP\fBParameters:\fP.RS 4\fIangle\fP Visible angle in degrees .RE.PP.SS "void QwtWheel::setWheelWidth (int w)".PPSet the width of the wheel. Corresponds to the wheel height for horizontal orientation, and the wheel width for vertical orientation. .PP\fBParameters:\fP.RS 4\fIw\fP the wheel's width .RE.PP.SS "QSize QwtWheel::sizeHint () const\fC [virtual]\fP".PP\fBReturns:\fP.RS 4a size hint .RE.PP.SS "QSizePolicy QwtWheel::sizePolicy () const\fC [virtual]\fP".PP\fBReturns:\fP.RS 4Preferred/Fixed for horizontal, Fixed/Preferred for vertical scales. .RE.PP.SS "void QwtWheel::valueChange ()\fC [protected, virtual]\fP".PPNotify value change. Reimplemented from \fBQwtSliderBase\fP..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 + -