Changeset 9383 in ntrip for trunk/BNC/qwt/qwt_plot_textlabel.h
- Timestamp:
- Mar 19, 2021, 9:15:03 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/qwt/qwt_plot_textlabel.h
r8127 r9383 22 22 In opposite to QwtPlotMarker the position of the label is unrelated to 23 23 plot coordinates. 24 24 25 25 As drawing a text is an expensive operation the label is cached 26 26 in a pixmap to speed up replots. 27 27 28 28 \par Example 29 The following code shows how to add a title. 29 The following code shows how to add a title. 30 \code 31 QwtText title( "Plot Title" ); 32 title.setRenderFlags( Qt::AlignHCenter | Qt::AlignTop ); 30 33 31 \verbatim 32 QwtText title( "Plot Title");33 title.setRenderFlags( Qt::AlignHCenter | Qt::AlignTop);34 QFont font; 35 font.setBold( true ); 36 title.setFont( font ); 34 37 35 QFont font; 36 font.setBold( true ); 37 title.setFont( font ); 38 39 QwtPlotTextLabel *titleItem = new QwtPlotTextLabel(); 40 titleItem->setText( title ); 41 titleItem->attach( this ); 42 \endverbatim 38 QwtPlotTextLabel *titleItem = new QwtPlotTextLabel(); 39 titleItem->setText( title ); 40 titleItem->attach( plot ); 41 \endcode 42 \endpar 43 43 44 44 \sa QwtPlotMarker 45 */ 45 */ 46 46 47 47 class QWT_EXPORT QwtPlotTextLabel: public QwtPlotItem
Note:
See TracChangeset
for help on using the changeset viewer.