|
QSint Library
0.2.2
|
Class showing a widget as popup window. More...
#include <widgetpopup.h>
Inherits QFrame.
Public Slots | |
| void | show (QPoint coord) |
Public Member Functions | |
| WidgetPopup (QWidget *parent=0) | |
| void | setWidget (QWidget *widget, bool own=true) |
| QWidget * | widget () const |
| bool | isOwned () const |
Class showing a widget as popup window.
setWidget() function allows you to specify the widget to be popped up. After widget is set, you normally should call show() slot in order to pop the widget up at the specified global position.
WidgetPopup takes care about positioning of your widget on the screen so it will be always visible even if popped beside.
| QSint::WidgetPopup::WidgetPopup | ( | QWidget * | parent = 0 | ) |
Constructor.
If parent not specified (default), then popup widget gets attribute Qt::WA_DeleteOnClose and will be deleted after close.
|
inline |
Returns true if widget is owned by this popup widget, false otherwise.
| void QSint::WidgetPopup::setWidget | ( | QWidget * | widget, |
| bool | own = true |
||
| ) |
Sets widget to be popped up to widget. If own is true then the widget will be reparented to the popup widget.
|
slot |
Pops up the widget at global coordinates coord.
|
inline |
Returns widget to be popped up.