#include <popupWidget.h>
|
| PopupWidget (QWidget *parent=0) |
|
bool | isActive () const |
|
void | setActive (bool) |
|
bool | autoShow () const |
|
void | setAutoShow (bool) |
|
int | showDelay () const |
|
void | setShowDelay (int delay) |
|
bool | autoHide () const |
|
void | setAutoHide (bool autoHide) |
|
int | hideDelay () const |
|
void | setHideDelay (int delay) |
|
virtual void | hidePopup () |
| Reimplemented for internal reasons.
|
|
|
virtual void | leaveEvent (QEvent *event) |
|
virtual void | enterEvent (QEnterEvent *event) |
|
virtual bool | eventFilter (QObject *obj, QEvent *event) |
|
virtual void | setBaseWidget (QWidget *baseWidget) |
|
◆ hidePopup()
void PopupWidget::hidePopup |
( |
| ) |
|
|
virtual |
◆ onEffectFinished
void PopupWidget::onEffectFinished |
( |
| ) |
|
|
protectedvirtualslot |
restore the AutoShow if needed.
◆ pinPopup
void PopupWidget::pinPopup |
( |
bool | pin | ) |
|
|
slot |
Convenient function that calls setAutoHide(!pin) and opens the popup if pin is true regardless of the value of AutoShow. It is typically connected with a checkable button to anchor the popup.
◆ setAutoHide()
void PopupWidget::setAutoHide |
( |
bool | autoHide | ) |
|
Don't automatically close the popup when leaving the widget. Calling setAutoHide automatically updates the state close the popup if the mouse is not over the popup nor the base widget.
◆ setAutoShow()
void PopupWidget::setAutoShow |
( |
bool | mode | ) |
|
Calling setAutoShow automatically updates opens the popup if the cursor is above the popup or the base widget.
◆ setBaseWidget()
void PopupWidget::setBaseWidget |
( |
QWidget * | baseWidget | ) |
|
|
protectedvirtual |
Widget the popup is attached to. It opens right under baseWidget and if the PopupWidget sizepolicy contains the growFlag/shrinkFlag, it tries to resize itself to fit the same width of baseWidget.
Reimplemented from BasePopupWidget.
◆ active
Control whether the popup listens to the application and baseWidget events and decides if it needs to be permanently or temporarily hidden. You might want to setActive(false) when embedding the popup into a static layout instead of having it top-level (no parent). Consider also removing its windowFlags (Qt::ToolTip | Qt::FramelessWindowHint) and removing the baseWidget. True by default
◆ autoHide
bool PopupWidget::autoHide |
|
readwrite |
Control whether the popup automatically closes when the mouse leaves the widget. True by default
◆ autoShow
bool PopupWidget::autoShow |
|
readwrite |
Control whether the popup automatically opens when the mouse enter the widget. True by default
◆ hideDelay
int PopupWidget::hideDelay |
|
readwrite |
Time in ms to wait before closing the popup if autoHide is set. 200ms by default
◆ showDelay
int PopupWidget::showDelay |
|
readwrite |
Time in ms to wait before opening the popup if autoShow is set. 20ms by default
The documentation for this class was generated from the following files:
- C:/Workspace/itom_development_VS2019_Qt5.15.2_x64/itomProject/itom/itomWidgets/popupWidget.h
- C:/Workspace/itom_development_VS2019_Qt5.15.2_x64/itomProject/itom/itomWidgets/popupWidget.cpp