|
KGLLib
|
Embeds QWidgets in GLWidget. More...
#include <widgetproxy.h>
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) |
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.
1.7.4