Movatterモバイル変換


[0]ホーム

URL:


We bake cookies in your browser for a better experience. Using this site means that you consent.Read More

Menu

Qt Documentation

QFocusFrame Class

TheQFocusFrame widget provides a focus frame which can be outside of a widget's normal paintable area.More...

Header:#include <QFocusFrame>
Inherits:QWidget

Public Functions

QFocusFrame(QWidget * parent = 0)
~QFocusFrame()
voidsetWidget(QWidget * widget)
QWidget *widget() const

Protected Functions

voidinitStyleOption(QStyleOption * option) const

Reimplemented Protected Functions

virtual boolevent(QEvent * e)
virtual booleventFilter(QObject * o, QEvent * e)
virtual voidpaintEvent(QPaintEvent *)
  • 37 protected functions inherited fromQWidget
  • 8 protected functions inherited fromQObject
  • 1 protected function inherited fromQPaintDevice

Additional Inherited Members

  • 58 properties inherited fromQWidget
  • 1 property inherited fromQObject
  • 19 public slots inherited fromQWidget
  • 1 public slot inherited fromQObject
  • 1 signal inherited fromQWidget
  • 1 signal inherited fromQObject
  • 4 static public members inherited fromQWidget
  • 7 static public members inherited fromQObject
  • 1 protected slot inherited fromQWidget

Detailed Description

TheQFocusFrame 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 ownQFocusFrame asQStyle will handle this detail for you. A style writer can optionally use aQFocusFrame 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 aQWidget withQFocusFrame::setWidget. It is, however, legal to create your ownQFocusFrame on a custom widget and set its geometry manually viaQWidget::setGeometry however you will not get auto-placement when the focused widget changes size or placement.

Member Function Documentation

QFocusFrame::QFocusFrame(QWidget * parent = 0)

Constructs aQFocusFrame.

The focus frame will not monitorparent for updates but rather can be placed manually or by usingQFocusFrame::setWidget. AQFocusFrame setsQt::WA_NoChildEventsForParent attribute; as a result the parent will not receive aQEvent::ChildInserted event, this will make it possible to manually set the geometry of theQFocusFrame inside of aQSplitter or other child event monitoring widget.

See alsoQFocusFrame::setWidget().

QFocusFrame::~QFocusFrame()

Destructor.

[virtual protected]bool QFocusFrame::event(QEvent * e)

Reimplemented fromQObject::event().

[virtual protected]bool QFocusFrame::eventFilter(QObject * o,QEvent * e)

Reimplemented fromQObject::eventFilter().

[protected]void QFocusFrame::initStyleOption(QStyleOption * option) const

Initializeoption with the values from thisQFocusFrame. This method is useful for subclasses when they need aQStyleOption, but don't want to fill in all the information themselves.

See alsoQStyleOption::initFrom().

[virtual protected]void QFocusFrame::paintEvent(QPaintEvent *)

Reimplemented fromQWidget::paintEvent().

void QFocusFrame::setWidget(QWidget * widget)

QFocusFrame will track changes towidget 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 alsoQFocusFrame::widget().

QWidget * QFocusFrame::widget() const

Returns the currently monitored widget for automatically resize and update.

See alsoQFocusFrame::setWidget().

© 2016 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of theGNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.


[8]ページ先頭

©2009-2025 Movatter.jp