Details
-
Suggestion
-
Resolution: Out of scope
-
Not Evaluated
-
None
-
None
-
None
Description
Hello,
I am looking to integrate QT into an application by creating a platform abstraction that allows a QT GUI to be embedded into it in a pre-defined way. To do that, I need to have control over the resources QT uses to control things like screens, windows, and the platform itself more directly through platform specific API's. After reading through documentation and source code I've found that it is possible to acquire these platform specific resources, but the ability to do so is inconsistent and sometimes dependent on private functions. More specifically:
- I want access to the QPlatformIntegration managed by a QGuiApplication. The only way I can access this is through the private QGuiApplicationPrivate::platformIntegration function.
- I want access to the QPlatformScreen managed by a QScreen object. This one is easily accessible through the QScreen::handle function.
- I want access to the QPlatformWindow managed by a QWindow object. This one is similarly accessible through the QWindow::handle function, but this time it's marked as internal in the documentation.
I don't see a way to achieve my goals without access to these objects. QT seems like a good candidate for my use-cases because it has a good abstraction layer that makes it possible to embed, but it doesn't seem like it fully supports what I'm trying to do. I think there should be more consistent access to platform abstraction objects to make embedding easier.
Thanks for your help and consideration!