A Widget which displays a QwtText.  
 More...
#include <qwt_text_label.h>
|  | 
| virtual void | paintEvent (QPaintEvent *e) | 
|  | 
| virtual void | drawContents (QPainter *) | 
|  | Redraw the text and focus indicator. 
 | 
|  | 
A Widget which displays a QwtText. 
  
  | 
        
          | QwtTextLabel::QwtTextLabel | ( | QWidget * | parent = NULL | ) |  |  | explicit | 
 
Constructs an empty label. 
- Parameters
- 
  
  
 
 
  
  | 
        
          | QwtTextLabel::QwtTextLabel | ( | const QwtText & | text, |  
          |  |  | QWidget * | parent = NULL |  
          |  | ) |  |  |  | explicit | 
 
Constructs a label that displays the text, text 
- Parameters
- 
  
    | parent | Parent widget |  | text | Text |  
 
 
 
  
  | 
        
          | int QwtTextLabel::heightForWidth | ( | int | width | ) | const |  | virtual | 
 
- Parameters
- 
  
  
- Returns
- Preferred height for this widget, given the width. 
 
 
  
  | 
        
          | void QwtTextLabel::paintEvent | ( | QPaintEvent * | event | ) |  |  | protectedvirtual | 
 
 
      
        
          | QString QwtTextLabel::plainText | ( |  | ) | const | 
      
 
 
      
        
          | void QwtTextLabel::setIndent | ( | int | indent | ) |  | 
      
 
Set label's text indent in pixels 
- Parameters
- 
  
    | indent | Indentation in pixels |  
 
 
 
      
        
          | void QwtTextLabel::setMargin | ( | int | margin | ) |  | 
      
 
Set label's margin in pixels 
- Parameters
- 
  
  
 
 
      
        
          | void QwtTextLabel::setPlainText | ( | const QString & | text | ) |  | 
      
 
 
Change the label's text, keeping all other QwtText attributes 
- Parameters
- 
  
    | text | New text |  | textFormat | Format of text |  
 
- See also
- QwtText 
 
 
  
  | 
        
          | void QwtTextLabel::setText | ( | const QwtText & | text | ) |  |  | virtualslot | 
 
 
      
        
          | QRect QwtTextLabel::textRect | ( |  | ) | const | 
      
 
Calculate geometry for the text in widget coordinates 
- Returns
- Geometry for the text