QxtLetterBoxWidget Class Reference
[QxtGui module]
The QxtLetterBoxWidget widget is a letter box widget. More...
#include <QxtLetterBoxWidget>
Inherits QFrame.
Public Functions
- 13 public functions inherited from QFrame
- 207 public functions inherited from QWidget
- 12 public functions inherited from QPaintDevice
- 29 public functions inherited from QObject
Public Slots
- 19 public slots inherited from QWidget
- 1 public slot inherited from QObject
Additional Inherited Members
- 6 properties inherited from QFrame
- 57 properties inherited from QWidget
- 1 property inherited from QObject
- 1 signal inherited from QWidget
- 1 signal inherited from QObject
- 1 public type inherited from QObject
- 4 static public members inherited from QWidget
- 1 static public member inherited from QPaintDevice
- 4 static public members inherited from QObject
- 37 protected functions inherited from QWidget
- 1 protected function inherited from QPaintDevice
- 7 protected functions inherited from QObject
- 1 protected slot inherited from QWidget
- 1 protected type inherited from QPaintDevice
- 2 protected variables inherited from QObject
Detailed Description
The QxtLetterBoxWidget widget is a letter box widget.
QxtLetterBoxWidget preserves the aspect ratio of its content widget.
Use QWidget::sizeIncrement to define the aspect ratio:
QxtLetterBoxWidget letterBox;
widget->setSizeIncrement(16, 9);
letterBox.setWidget(widget);
letterBox.show();
Member Function Documentation
QxtLetterBoxWidget::QxtLetterBoxWidget ( QWidget * parent = 0 )
Constructs a new QxtLetterBoxWidget with parent.
QxtLetterBoxWidget::~QxtLetterBoxWidget ()
Destructs the group box.
QColor QxtLetterBoxWidget::backgroundColor () const
See also setBackgroundColor().
void QxtLetterBoxWidget::clearBackgroundColor ()
int QxtLetterBoxWidget::margin () const
See also setMargin().
uint QxtLetterBoxWidget::resizeDelay () const
See also setResizeDelay().
void QxtLetterBoxWidget::resizeWidget () [slot]
Resizes the content widget.
void QxtLetterBoxWidget::setBackgroundColor ( const QColor & color )
See also backgroundColor().
void QxtLetterBoxWidget::setMargin ( int margin )
See also margin().
void QxtLetterBoxWidget::setResizeDelay ( uint delay )
See also resizeDelay().
void QxtLetterBoxWidget::setWidget ( QWidget * widget )
Sets the given widget to be the letter box's widget.
Note: QxtLetterBox takes ownership of the widget pointer and deletes it at the appropriate time.
See also widget().
QWidget * QxtLetterBoxWidget::widget () const
Returns the widget for the letter box. This function returns zero if the widget has not been set.
See also setWidget().