[Qt-interest] QDesktopServices and QtGui dependency

Neville Dastur qt at dastur.me.uk
Wed Feb 3 13:36:11 CET 2010



Andre Somers wrote:
> Thiago Macieira wrote:
>   
>> Em Terça-feira 2. Fevereiro 2010, às 02.00.17, Francesco Lamonica escreveu:
>>   
>>     
>>> Hi all, is there a way to avoid that aforementioned dependency? basically
>>> i'm writing a QCoreApplication and i use QDesktopServices to get info on
>>> system's default directories, but just for this i'd really not want to link
>>> it against the QtGui lib.
>>>
>>> any ideas?
>>>     
>>>       
>> You can copy QDesktopServices's source code into your application.
>>
>> Remember that if you do that, the LGPL applies somewhat differently. It will be 
>> equivalent to the GPL in that case.
>>   
>>     
> If that is a problem, I *think* (IANAL) you could copy it to your own 
> library which you can then release under LGPL again, and link to that 
> library. That would prevent making your whole application GPL, if you 
> object to that.
>
> André
>   
I thought there was some sort of 10% magic number. In effect you are 
statically including code which presumably comes to less than 10% and 
that was okay.



More information about the Qt-interest-old mailing list