QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
|
The QgsUserInputWidget class is a floating widget that shall be used to display widgets for user inputs. More...
#include <qgsuserinputwidget.h>
Public Member Functions | |
QgsUserInputWidget (QWidget *parent=nullptr) | |
Constructor for QgsUserInputWidget. More... | |
void | addUserInputWidget (QWidget *widget) |
Add a widget to be displayed in the dock. More... | |
Public Member Functions inherited from QgsFloatingWidget | |
QgsFloatingWidget (QWidget *parent=nullptr) | |
Constructor for QgsFloatingWidget. More... | |
AnchorPoint | anchorPoint () const |
Returns the floating widget's anchor point, which corresponds to the point on the widget which should remain fixed in the same relative position whenever the widget's parent is resized or moved. More... | |
QWidget * | anchorWidget () |
Returns the widget that the floating widget is "anchored" tto. More... | |
AnchorPoint | anchorWidgetPoint () const |
Returns the anchor widget's anchor point, which corresponds to the point on the anchor widget which the floating widget should "attach" to. More... | |
void | setAnchorPoint (AnchorPoint point) |
Sets the floating widget's anchor point, which corresponds to the point on the widget which should remain fixed in the same relative position whenever the widget's parent is resized or moved. More... | |
void | setAnchorWidget (QWidget *widget) |
Sets the widget to "anchor" the floating widget to. More... | |
void | setAnchorWidgetPoint (AnchorPoint point) |
Returns the anchor widget's anchor point, which corresponds to the point on the anchor widget which the floating widget should "attach" to. More... | |
Protected Member Functions | |
void | paintEvent (QPaintEvent *event) override |
Protected Member Functions inherited from QgsFloatingWidget | |
void | paintEvent (QPaintEvent *e) override |
void | resizeEvent (QResizeEvent *e) override |
void | showEvent (QShowEvent *e) override |
Additional Inherited Members | |
Public Types inherited from QgsFloatingWidget | |
enum | AnchorPoint { TopLeft, TopMiddle, TopRight, MiddleLeft, Middle, MiddleRight, BottomLeft, BottomMiddle, BottomRight } |
Reference points for anchoring widget position. More... | |
Signals inherited from QgsFloatingWidget | |
void | anchorPointChanged (QgsFloatingWidget::AnchorPoint point) |
Emitted when the anchor point changes. More... | |
void | anchorWidgetChanged (QWidget *widget) |
Emitted when the anchor widget changes. More... | |
void | anchorWidgetPointChanged (QgsFloatingWidget::AnchorPoint point) |
Emitted when the anchor widget point changes. More... | |
Properties inherited from QgsFloatingWidget | |
AnchorPoint | anchorPoint |
QWidget * | anchorWidget |
AnchorPoint | anchorWidgetPoint |
The QgsUserInputWidget class is a floating widget that shall be used to display widgets for user inputs.
It can be used by map tools, plugins, etc. Several widgets can be displayed at once, they will be separated by a separator. Widgets will be either layout horizontally or vertically. The widget is automatically hidden if it contains no widget.
Definition at line 40 of file qgsuserinputwidget.h.
QgsUserInputWidget::QgsUserInputWidget | ( | QWidget * | parent = nullptr | ) |
Constructor for QgsUserInputWidget.
Definition at line 20 of file qgsuserinputwidget.cpp.
void QgsUserInputWidget::addUserInputWidget | ( | QWidget * | widget | ) |
Add a widget to be displayed in the dock.
widget | widget to add. Ownership is not transferred. |
Definition at line 52 of file qgsuserinputwidget.cpp.
|
overrideprotected |
Definition at line 112 of file qgsuserinputwidget.cpp.