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

📄 qslider.3qt

📁 Qt/Embedded是一个多平台的C++图形用户界面应用程序框架
💻 3QT
📖 第 1 页 / 共 2 页
字号:
\fBThis function is obsolete.\fR It is provided to keep old source working, and will probably be removed in a future version of Qt. We strongly advise against using it in new code..PPDraws the "groove" on which the slider moves, using the painter \fIp. c\fR gives the distance from the top (or left) edge of the widget to the center of the groove..SH "void QSlider::focusInEvent ( QFocusEvent * e ) \fC[virtual protected]\fR"Reimplemented for internal reasons; the API is not affected..PPReimplemented from QWidget..SH "void QSlider::focusOutEvent ( QFocusEvent * e ) \fC[virtual protected]\fR"Reimplemented for internal reasons; the API is not affected..PPReimplemented from QWidget..SH "void QSlider::keyPressEvent ( QKeyEvent * e ) \fC[virtual protected]\fR"Reimplemented for internal reasons; the API is not affected..PPReimplemented from QWidget..SH "int QSlider::lineStep () const"Reimplemented for internal reasons; the API is not affected..SH "int QSlider::maxValue () const"Reimplemented for internal reasons; the API is not affected..SH "int QSlider::minValue () const"Reimplemented for internal reasons; the API is not affected..SH "QSize QSlider::minimumSizeHint () const \fC[virtual]\fR"Reimplemented for internal reasons; the API is not affected..PPReimplemented from QWidget..SH "void QSlider::mouseMoveEvent ( QMouseEvent * e ) \fC[virtual protected]\fR"Reimplemented for internal reasons; the API is not affected..PPReimplemented from QWidget..SH "void QSlider::mousePressEvent ( QMouseEvent * e ) \fC[virtual protected]\fR"Reimplemented for internal reasons; the API is not affected..PPReimplemented from QWidget..SH "void QSlider::mouseReleaseEvent ( QMouseEvent * ) \fC[virtual protected]\fR"Reimplemented for internal reasons; the API is not affected..PPReimplemented from QWidget..SH "Orientation QSlider::orientation () const"Returns the slider orientation; QSlider::Vertical or QSlider::Horizontal..PPSee also setOrientation()..SH "int QSlider::pageStep () const"Reimplemented for internal reasons; the API is not affected..SH "void QSlider::paintEvent ( QPaintEvent * ) \fC[virtual protected]\fR"Reimplemented for internal reasons; the API is not affected..PPReimplemented from QWidget..SH "void QSlider::paintSlider ( QPainter * p, const QColorGroup & g, const QRect & r ) \fC[virtual protected]\fR"Paints the slider button using painter \fIp\fR with size, a colorgroup and position given by \fIr.\fR Reimplement this function to change the look of the slider button..PPSetting the colorgroup is useful to reuse the code to draw a mask if the slider supports transparceny..PPSee also setAutoMask() and updateMask()..SH "void QSlider::rangeChange () \fC[virtual protected]\fR"Implements the virtual QRangeControl function..PPReimplemented from QRangeControl..SH "void QSlider::resizeEvent ( QResizeEvent * ) \fC[virtual protected]\fR"Reimplemented for internal reasons; the API is not affected..PPReimplemented from QWidget..SH "void QSlider::setLineStep ( int i )"Sets the line step to \fIi.\fR.PPCalls the virtual stepChange() function if the new line step is different from the previous setting..PPSee also lineStep(), QRangeControl::setSteps(), setPageStep() and setRange()..SH "void QSlider::setMaxValue ( int i )"A convenience function which just calls setRange( minValue(), i ).PPSee also setRange()..SH "void QSlider::setMinValue ( int i )"A convenience function which just calls setRange( i, maxValue() ).PPSee also setRange()..SH "void QSlider::setOrientation ( Orientation orientation ) \fC[virtual]\fR"Sets the slider orientation. The \fIorientation\fR must be QSlider::Vertical or QSlider::Horizontal..PPSee also orientation()..SH "void QSlider::setPageStep ( int i )"Sets the page step to \fIi.\fR.PPCalls the virtual stepChange() function if the new page step is different from the previous setting..PPSee also pageStep(), QRangeControl::setSteps(), setLineStep() and setRange()..SH "void QSlider::setPalette ( const QPalette & p ) \fC[virtual]\fR"Reimplements the virtual function QWidget::setPalette()..PPSets the background color to the mid color for Motif style sliders..SH "void QSlider::setTickInterval ( int i ) \fC[virtual]\fR"Sets the interval between tickmarks to \fIi.\fR This is a value interval, not a pixel interval. If \fIi\fR is 0, the slider will choose between lineStep() and pageStep(). The initial value of tickInterval() is 0..PPSee also tickInterval(), QRangeControl::lineStep() and QRangeControl::pageStep()..SH "void QSlider::setTickmarks ( TickSetting s )"Sets the way tickmarks are displayed by the slider. \fIs\fR can take the following values:.TP\fCNoMarks\fR.TP\fCAbove\fR.TP\fCLeft\fR.TP\fCBelow\fR.TP\fCRight\fR.TP\fCBoth\fR The initial value is \fCNoMarks.\fR.PPSee also tickmarks() and setTickInterval()..SH "void QSlider::setTracking ( bool enable ) \fC[virtual]\fR"Enables slider tracking if \fIenable\fR is TRUE, or disables tracking if \fIenable\fR is FALSE..PPIf tracking is enabled (default), the slider emits the valueChanged() signal whenever the slider is being dragged. If tracking is disabled, the slider emits the valueChanged() signal when the user releases the mouse button (unless the value happens to be the same as before)..PPSee also tracking()..SH "void QSlider::setValue ( int value ) \fC[virtual slot]\fR"Makes QRangeControl::setValue() available as a slot..PPExamples:.(lxform/xform.cpp.)l.SH "QSize QSlider::sizeHint () const \fC[virtual]\fR"Reimplemented for internal reasons; the API is not affected..PPReimplemented from QWidget..SH "QSizePolicy QSlider::sizePolicy () const \fC[virtual]\fR"Reimplemented for internal reasons; the API is not affected..PPReimplemented from QWidget..SH "void QSlider::sliderMoved ( int value ) \fC[signal]\fR"This signal is emitted when the slider is dragged, with the new slider value as an argument..SH "void QSlider::sliderPressed () \fC[signal]\fR"This signal is emitted when the user presses the slider with the mouse..SH "QRect QSlider::sliderRect () const"Returns the slider handle rectangle. (The actual moving-around thing.)..SH "void QSlider::sliderReleased () \fC[signal]\fR"This signal is emitted when the user releases the slider with the mouse..SH "void QSlider::styleChange ( QStyle & old ) \fC[virtual protected]\fR"Reimplemented for internal reasons; the API is not affected..PPReimplemented from QWidget..SH "void QSlider::subtractStep () \fC[slot]\fR"Moves the slider one pageStep() downwards..SH "int QSlider::thickness () const \fC[virtual protected]\fR"Returns the number of pixels to use for the business part of the slider (i.e. the non-tickmark portion). The remaining space is shared equally between the tickmark regions. This function and sizeHint() are closely related; if you change one, you almost certainly have to change the other..SH "int QSlider::tickInterval () const"Returns the interval between tickmarks. Returns 0 if the slider chooses between pageStep() and lineStep()..PPSee also setTickInterval()..SH "QSlider::TickSetting QSlider::tickmarks() const"Returns the tickmark settings for this slider..PPSee also setTickmarks()..SH "bool QSlider::tracking () const"Returns TRUE if tracking is enabled, or FALSE if tracking is disabled..PPTracking is initially enabled..PPSee also setTracking()..SH "void QSlider::updateMask () \fC[virtual protected]\fR"Reimplementation of QWidget::updateMask(). Draws the mask of the slider when transparency is required..PPSee also QWidget::setAutoMask()..PPReimplemented from QWidget..SH "int QSlider::value () const"Reimplemented for internal reasons; the API is not affected..PPExamples:.(lxform/xform.cpp.)l.SH "void QSlider::valueChange () \fC[virtual protected]\fR"Implements the virtual QRangeControl function..PPReimplemented from QRangeControl..SH "void QSlider::valueChanged ( int value ) \fC[signal]\fR"This signal is emitted when the slider value is changed, with the new slider value as an argument..SH "void QSlider::wheelEvent ( QWheelEvent * e ) \fC[virtual protected]\fR"Reimplemented for internal reasons; the API is not affected..PPReimplemented from QWidget..SH "SEE ALSO".BR http://doc.trolltech.com/qslider.html.SH COPYRIGHTCopyright 1992-2000 Trolltech AS, http://www.trolltech.com/.  See thelicense file included in the distribution for a complete licensestatement..SH AUTHORGenerated automatically from the source code.

⌨️ 快捷键说明

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