The QFocusFrame widget provides a focus frame which can be outside of a widget's normal paintable area. More...
#include <QFocusFrame>
Inherits: QWidget.
QFocusFrame ( QWidget * parent = 0 ) | |
~QFocusFrame () | |
void | setWidget ( QWidget * widget ) |
QWidget * | widget () const |
void | initStyleOption ( QStyleOption * option ) const |
virtual bool | event ( QEvent * e ) |
virtual bool | eventFilter ( QObject * o, QEvent * e ) |
virtual void | paintEvent ( QPaintEvent * ) |
The QFocusFrame widget provides a focus frame which can be outside of a widget's normal paintable area.
Normally an application will not need to create its own QFocusFrame as QStyle will handle this detail for you. A style writer can optionally use a QFocusFrame to have a focus area outside of the widget's paintable geometry. In this way space need not be reserved for the widget to have focus but only set on a QWidget with QFocusFrame::setWidget. It is, however, legal to create your own QFocusFrame on a custom widget and set its geometry manually via QWidget::setGeometry however you will not get auto-placement when the focused widget changes size or placement.
Constructs a QFocusFrame.
The focus frame will not monitor parent for updates but rather can be placed manually or by using QFocusFrame::setWidget. A QFocusFrame sets Qt::WA_NoChildEventsForParent attribute; as a result the parent will not receive a QEvent::ChildInserted event, this will make it possible to manually set the geometry of the QFocusFrame inside of a QSplitter or other child event monitoring widget.
See also QFocusFrame::setWidget().
Destructor.
Reimplemented from QObject::event().
Reimplemented from QObject::eventFilter().
Initialize option with the values from this QFocusFrame. This method is useful for subclasses when they need a QStyleOption, but don't want to fill in all the information themselves.
See also QStyleOption::initFrom().
Reimplemented from QWidget::paintEvent().
QFocusFrame will track changes to widget and resize itself automatically. If the monitored widget's parent changes, QFocusFrame will follow the widget and place itself around the widget automatically. If the monitored widget is deleted, QFocusFrame will set it to zero.
See also QFocusFrame::widget().
Returns the currently monitored widget for automatically resize and update.
See also QFocusFrame::setWidget().
© 2008-2011 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide.
All other trademarks are property of their respective owners. Privacy Policy
Licensees holding valid Qt Commercial licenses may use this document in accordance with the Qt Commercial License Agreement provided with the Software or, alternatively, in accordance with the terms contained in a written agreement between you and Nokia.
Alternatively, this document may be used under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.