VR-Engage  2.2
Loading...
Searching...
No Matches
vreQQuickWindow.h
Go to the documentation of this file.
1/*********************************************************************************
2** Copyright (c) 2025 MAK Technologies
3** All rights reserved.
4*********************************************************************************/
5
6#pragma once
7
8//! \file vreQQuickWindow.h
9//! \ingroup vreQtQuickRenderer
10//! \brief Extended QQuickWindow that enables event capture for VREngage
11//!
12//! This class extends the default QQuickWindow to provide additional functionality
13//! for capturing and handling events within the VREngage environment. It works in
14//! conjunction with the render control to properly route events to QML elements.
15
17
18#include <QtQuick/QQuickWindow>
19
20namespace makVre
21{
23
24//! \brief Extended QQuickWindow for VREngage integration
25//!
26//! This class extends QQuickWindow to add event filtering capabilities,
27//! enabling proper integration with the VREngage event system and render control.
28class QTQUICKRENDERER_DLL DtQQuickWindow : public QQuickWindow
29{
30public:
31 //! \brief Constructor
32 //! \param qqrc Pointer to the Qt Quick render control to associate with this window
34
35 //! \brief Virtual destructor
36 virtual ~DtQQuickWindow() override;
37
38 //! \brief Event filter for capturing and handling Qt events
39 //! \param object The object that received the event
40 //! \param qevent The event that was received
41 //! \return True if the event was handled, false to continue normal processing
42 virtual bool eventFilter(QObject* object, QEvent* qevent) override;
43
44 //! \brief Sets the render control for this window
45 //! \param rc Pointer to the Qt Quick render control
47
48 //! \brief Gets the render control for this window
49 //! \return Pointer to the Qt Quick render control
51
52 //! \brief Handles focus in events for the window
53 //! \param fevent The focus event
54 virtual void focusInEvent(QFocusEvent* fevent) override;
55
56protected:
57 //! \brief Pointer to the associated render control
59};
60} // namespace makVre
virtual ~DtQQuickWindow() override
Virtual destructor.
DtQQuickWindow(DtQtQRenderControl *qqrc)
Constructor.
virtual void focusInEvent(QFocusEvent *fevent) override
Handles focus in events for the window.
DtQtQRenderControl * myRenderControl
Pointer to the associated render control.
Definition vreQQuickWindow.h:58
virtual void setRenderControl(DtQtQRenderControl *rc)
Sets the render control for this window.
virtual DtQtQRenderControl * getRenderControl()
Gets the render control for this window.
virtual bool eventFilter(QObject *object, QEvent *qevent) override
Event filter for capturing and handling Qt events.
Extended rendering control for Qt Quick in VREngage.
Definition vreQtQRenderControl.h:28
Defines export macros for the VREngage Qt Quick Renderer library.
#define QTQUICKRENDERER_DLL
Export/import macro for non-Windows platforms.
Definition export.h:40
Include export definitions for this library.
Definition glsVreMessageUtil.h:49