[Qt-interest] QDesktopServices and QtGui dependency
Andre Somers
andre at familiesomers.nl
Tue Feb 2 12:24:28 CET 2010
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é
More information about the Qt-interest-old
mailing list