QSint Library  0.2.2
Public Slots | Public Member Functions | List of all members
QSint::WidgetPopup Class Reference

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
 

Detailed Description

Class showing a widget as popup window.

Since
0.2

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.

Constructor & Destructor Documentation

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.

Member Function Documentation

bool QSint::WidgetPopup::isOwned ( ) const
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.

void QSint::WidgetPopup::show ( QPoint  coord)
slot

Pops up the widget at global coordinates coord.

QWidget* QSint::WidgetPopup::widget ( ) const
inline

Returns widget to be popped up.


The documentation for this class was generated from the following files:

© Sintegrial Technologies 2011-2014
http://www.sintegrial.com