Thiago Macieira <thiago <at> kde.org> writes:
> They are being added in Qt 5 right now. I don't know what the best solution > for Qt 5.1, though. What we've done in Qt in the past is subclass and create > a > V2 class, so we know which new virtuals have been implemented. sure > > 2.) Finding out on which platform one runs. > > > > - in WebKit we use defined(Q_WS_...) to detect the platform or sometimes > > use the QX11Info class or other things. > > > > How is this supposed to work with QPA/Lighthouse? How would I get the > > native display connection (e.g. if I want to/need to by pass Qt)? Are > > there some best practices? > > First option: don't do it. Write agnostic code that doesn't depend on the > platform. If you need to access the display connection for something, it > might > indicate a missing API in Qt or the platform plugin. > Now here's a good question: how do I write a Lighthouse program that embeds > another program? Do I use QX11EmbedContainer or QMacCocoaViewContainer? The > long-term answer will probably be a QML item, but until QML is ready for the > desktop, how do I my app? > > Another would be a question of whether to link to X11 or libwayland or > something else on Q_OS_LINUX. The answer will probably be to make them plugin. > (didn't know how much to snip) WebKit: Let us pretend that Mozilla has specified NPAPI for Wayland and X11 and that we have built PluginProcessWayland and PluginProcessX11 for WebKit2. Depending on which criteria should we decide which one to start? Hacks: I would also hack around for better video integration with directFB, e.g create QPixmapData::VideoPixmapData, or find another way to have a QPixmap that wraps a DirectFBSurface. Right now in WebKit we have a custom GStreamer Video Sink that only advertises RGB color support, I would like the video decoder decode directly to video memory in YUV. > I thought that there was already some code doing it. Especially for the JPEG > decoding. I missed one part of it, right now it is possible to reimplement the QPixmapData::loadFromData, so the current gfxdrivers/directFB functionality can be restored. What would also be nice is to hook into the QImageReader... but I have no specific idea how it would look like. _______________________________________________ Qt5-feedback mailing list [email protected] http://lists.qt.nokia.com/mailman/listinfo/qt5-feedback
