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

📄 qwtlegend.3

📁 软件无线电的平台
💻 3
字号:
.TH "QwtLegend" 3 "4 Nov 2003" "Qwt User's Guide" \" -*- nroff -*-.ad l.nh.SH NAMEQwtLegend \- .SH SYNOPSIS.br.PP.SH "Detailed Description".PP The legend widget. The QwtLegend widget is a tabular arrangement of legend items. Legend items might be any type of widget, but in general they will be a \fBQwtLegendButton\fP..PP\fBSee also:\fP.RS 4\fBQwtLegendButton\fP, \fBQwtPlot\fP .RE.PP.PP.SS "Public Types".in +1c.ti -1c.RI "enum \fBLegendDisplayPolicy\fP { \fBNone\fP =  0, \fBFixed\fP =  1, \fBAuto\fP =  2 }".br.in -1c.SS "Public Member Functions".in +1c.ti -1c.RI "\fBQwtLegend\fP (QWidget *parent=0, const  char *name=0)".br.ti -1c.RI "void \fBsetReadOnly\fP (bool readOnly)".br.ti -1c.RI "bool \fBisReadOnly\fP () const ".br.ti -1c.RI "void \fBsetDisplayPolicy\fP (\fBLegendDisplayPolicy\fP policy, int mode=-1)".br.ti -1c.RI "\fBLegendDisplayPolicy\fP \fBdisplayPolicy\fP () const ".br.ti -1c.RI "int \fBidentifierMode\fP () const ".br.ti -1c.RI "QWidget * \fBcontentsWidget\fP ()".br.ti -1c.RI "const  QWidget * \fBcontentsWidget\fP () const ".br.ti -1c.RI "void \fBinsertItem\fP (QWidget *, long key)".br.ti -1c.RI "QWidget * \fBfindItem\fP (long key)".br.ti -1c.RI "const  QWidget * \fBfindItem\fP (long key) const ".br.ti -1c.RI "QWidget * \fBtakeItem\fP (long key)".br.ti -1c.RI "virtual QWidgetIntDictIt \fBitemIterator\fP () const ".br.ti -1c.RI "long \fBkey\fP (const  QWidget *) const ".br.ti -1c.RI "void \fBclear\fP ()".br.ti -1c.RI "bool \fBisEmpty\fP () const ".br.ti -1c.RI "uint \fBitemCount\fP () const ".br.ti -1c.RI "virtual bool \fBeventFilter\fP (QObject *, QEvent *)".br.ti -1c.RI "virtual QSize \fBsizeHint\fP () const ".br.ti -1c.RI "virtual int \fBheightForWidth\fP (int w) const ".br.in -1c.SS "Protected Member Functions".in +1c.ti -1c.RI "virtual void \fBviewportResizeEvent\fP (QResizeEvent *)".br.ti -1c.RI "virtual void \fBlayoutContents\fP ()".br.in -1c.SH "Member Enumeration Documentation".PP .SS "enum \fBQwtLegend::LegendDisplayPolicy\fP".PPDisplay policy. .IP "\(bu" 2None.br the client code is responsible how to display of each legend item. The Qwt library will not interfere..PP.PP.IP "\(bu" 2Fixed.br all legend items are displayed with the QwtLegendItem::IdentifierMode to be passed in 'mode'..PP.PP.IP "\(bu" 2Auto.br each legend item is displayed with a mode that is a bitwise or of.IP "  \(bu" 4QwtLegendItem::ShowLine (if its curve is drawn with a line) and.IP "  \(bu" 4QwtLegendItem::ShowSymbol (if its curve is drawn with symbols) and.IP "  \(bu" 4QwtLegendItem::ShowText (if the has a title)..PP.PP.PPDefault is LegendDisplayPolicy::Auto. .PP\fBSee also:\fP.RS 4\fBQwtLegend::setDisplayPolicy\fP, \fBQwtLegend::displayPolicy\fP, QwtLegendItem::IdentifierMode .RE.PP.SH "Constructor & Destructor Documentation".PP .SS "QwtLegend::QwtLegend (QWidget * parent = 0, const char * name = 0)".PP\fBParameters:\fP.RS 4\fIparent\fP Parent widget .br\fIname\fP Widget name .RE.PP.SH "Member Function Documentation".PP .SS "void QwtLegend::clear ()".PPRemove all items. .SS "const  QWidget * QwtLegend::contentsWidget () const".PPThe contents widget is the only child of the viewport() and the parent widget of all legend items. .SS "QWidget * QwtLegend::contentsWidget ()".PPThe contents widget is the only child of the viewport() and the parent widget of all legend items. .SS "\fBQwtLegend::LegendDisplayPolicy\fP QwtLegend::displayPolicy () const".PPReturn the legend display policy. Default is LegendDisplayPolicy::Auto. .PP\fBSee also:\fP.RS 4\fBQwtLegend::setDisplayPolicy\fP, \fBQwtLegend::LegendDisplayPolicy\fP .RE.PP.SS "const  QWidget * QwtLegend::findItem (long key) const".PPFind the item for a given key. .SS "QWidget * QwtLegend::findItem (long key)".PPFind the item for a given key. .SS "int QwtLegend::heightForWidth (int w) const\fC [virtual]\fP".PP\fBReturns:\fP.RS 4The preferred height, for the width w. .RE.PP.SS "int QwtLegend::identifierMode () const".PPReturn the IdentifierMode to be used in combination with LegendDisplayPolicy::Fixed..PPDefault is ShowLine | ShowSymbol | ShowText. .SS "void QwtLegend::insertItem (QWidget * item, long key)".PPInsert a new item for a specific key. .PP\fBParameters:\fP.RS 4\fIitem\fP New legend item .br\fIkey\fP Unique key. Key must be >= 0. .RE.PP\fBNote:\fP.RS 4The parent of item will be changed to \fBQwtLegend::contentsWidget()\fP .PPIn case of key < 0, nothing will be inserted. .RE.PP.SS "bool QwtLegend::isEmpty () const".PPReturn TRUE, if there are no legend items. .SS "uint QwtLegend::itemCount () const".PPReturn the number of legend items. .SS "QWidgetIntDictIt QwtLegend::itemIterator () const\fC [virtual]\fP".PPReturn an item iterator. .SS "long QwtLegend::key (const QWidget * item) const".PPReturn the key of an legend item. .PP\fBParameters:\fP.RS 4\fIitem\fP Legend item .RE.PP\fBReturns:\fP.RS 4key of the item, or -1 if the item can't be found. .RE.PP.SS "void QwtLegend::layoutContents ()\fC [protected, virtual]\fP".PPAdjust contents widget and item layout to the size of the viewport(). .SS "void QwtLegend::setDisplayPolicy (\fBLegendDisplayPolicy\fP policy, int mode = -1)".PPSet the legend display policy to:.PP\fBParameters:\fP.RS 4\fIpolicy\fP Legend display policy .br\fImode\fP Identifier mode (or'd ShowLine, ShowSymbol, ShowText).RE.PP\fBSee also:\fP.RS 4\fBQwtLegend::displayPolicy\fP, \fBQwtLegend::LegendDisplayPolicy\fP .RE.PP.SS "QSize QwtLegend::sizeHint () const\fC [virtual]\fP".PPReturn a size hint. .SS "QWidget * QwtLegend::takeItem (long key)".PPFind the item for a given key and remove it from the item list. .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 + -