You could change the platform plugin so that the QPlatformBackingStore 
implementation's paintDevice() returns your custom QPaintDevice implementation. 
This paint device would then be paired with your custom paint engine. This way 
all non-GL toplevels will use your engine/device.

This approach will not work for Quick 2 and any other OpenGL-based code.

Best regards,
Laszlo

From: interest-bounces+laszlo.agocs=digia....@qt-project.org 
[mailto:interest-bounces+laszlo.agocs=digia....@qt-project.org] On Behalf Of 
Max Savenkov
Sent: 3. februar 2014 10:13
To: interest@qt-project.org
Subject: [Interest] How do I use custom Paint Engine/Device globally?


If I write my own implementation of QPaintEngine/QPaintDevice, how can I make 
Qt use them in my application without sub-classing all used widgets? I want to 
render all Qt graphics through a 3rd party library. I guess the answer would 
also depend on whether I want to use usual widgets, or Qt Quick, and I would 
like to know it for both those cases, if they are at all different.

Specifically, I would like to try to render Qt through Allegro library to use 
it for game GUI.
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to