Best practice for libraries supporting both Qt4 and Qt5

Thiago Macieira thiago at kde.org
Sun Dec 1 22:18:35 GMT 2013


On domingo, 1 de dezembro de 2013 13:42:15, Rex Dieter wrote:
> Allan Sandfeld Jensen wrote:
> > On Thursday 28 November 2013, Michael Palimaka wrote:
> >> Any thoughts?
> > 
> > In an ideal world we would convince the distros to enable Qt namespace on
> > Qt5, so that Qt4 and Qt5 symbols does not clash, and does not cause
> > crashes when loaded as plugins etc.
> 
> Sounds pretty nice, wonder why that is not enabled by default then.

Because trying to load two different builds into the same process space is 
likely going to cause a lot more headache than you anticipate, even with the 
namespace sharing.

For one thing, both Qt will try to own the event loop.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel Open Source Technology Center
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20131201/662987be/attachment.sig>


More information about the kde-core-devel mailing list