[Qt-interest] Qt and XCB
Thiago Macieira
thiago at kde.org
Wed Jun 30 14:52:48 CEST 2010
On Wednesday 30 June 2010 13:47:45 JJDaNiMoTh wrote:
> The first question is: Could I create a WM without using "under-layer" API
> (Xlib, Cocoa, Win..) but using only Qt?
> If yes, it could me save time to write a layer for the three platforms.
>
I seriously doubt that you can write the app using Qt code alone. You will
probably need to write platform-specific code to become the WM, to handle the
windows coming from other processes, etc.
> If not (which I think), I have thought about using XCB instead of Xlib, for
> the X11 layer, because (from what I read on freedesktop.org) is more
> powerful, light and fast than Xlib. But, if I use XCB for some little
> parts (just take ownership of all desktop) Qt will use Xlib, so I wouldn't
> see any benefits.
Well, your code would benefit. That might be the benefit you're seeking.
> So, the second question is: Qt supports XCB? There is a Qt port to XCB
> somewhere?
Qt doesn't support XCB directly and there's no port to it. XCB is supported
indirectly, by the fact that libX11 is implemented on top of XCB.
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
Senior Product Manager - Nokia, Qt Development Frameworks
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100630/c5b729e4/attachment.bin
More information about the Qt-interest-old
mailing list