[Qt-interest] QDesktopServices and QtGui dependency
Pau Garcia i Quiles
pgquiles at elpauer.org
Wed Feb 3 12:54:53 CET 2010
Hello,
On X11 some features and/or values depend on a desktop manager (KDE,
Gnome, etc) being available. Take a look at
http://qt.gitorious.org/qt/qt/blobs/master/src/gui/util/qdesktopservices_x11.cpp
On Wed, Feb 3, 2010 at 11:37 AM, Francesco Lamonica
<alienpenguin at gmail.com> wrote:
> Thank you all for the answers,
> eventually i'll follow one of the solutions mentioned; we have a commercial
> license so i am not entirely sure if that changes the possibility to include
> parts of that code, i'll check that later; however i think that this
> specific part of QDesktopServices should be moved to a different class to
> avoid the Gui dependency, dont you agree?
>
> regards
>
> On Tue, Feb 2, 2010 at 12:24 PM, Andre Somers <andre at familiesomers.nl>
> 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é
>>
>> _______________________________________________
>> Qt-interest mailing list
>> Qt-interest at trolltech.com
>> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>
--
Pau Garcia i Quiles
http://www.elpauer.org
(Due to my workload, I may need 10 days to answer)
More information about the Qt-interest-old
mailing list