KGLLib
Classes | Public Member Functions | Protected Member Functions
KGLLib::WidgetProxy Class Reference

Embeds QWidgets in GLWidget. More...

#include <widgetproxy.h>

List of all members.

Classes

class  Scene

Public Member Functions

 WidgetProxy (GLWidget *w, QWidget *parent=0)
QGraphicsProxyWidget * addWidget (QWidget *w)
QWidget * createWindow (const QString &title)

Protected Member Functions

virtual void resizeEvent (QResizeEvent *event)
virtual bool event (QEvent *event)
virtual bool viewportEvent (QEvent *event)
bool handleMouseEvent (QEvent *event, const QPoint &pos)

Detailed Description

Embeds QWidgets in GLWidget.

WidgetProxy class allows easy embedding of QWidget subclasses inside a GLWidget. It tries to be as transparent as possible, continuing to use the GLWidget for rendering and doing smart event forwarding. Mouse events are sent to the widget that is under the cursor. Keyboard events are sent to the widget that has focus. When user clicks outside any embedded QWidgets then focus is given to the GLWidget.


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