Home · Modules · Classes · Namespaces · Functions

QxtLetterBoxWidget Class Reference
[QxtGui module]

The QxtLetterBoxWidget widget is a letter box widget. More...

    #include <QxtLetterBoxWidget>

Inherits QFrame.

Public Functions

Public Slots

Additional Inherited Members


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().


Copyright © 2007-2010 Qxt Foundation
Qxt 0.6.1