Results 1 to 11 of 11

Thread: Licensing Question

  1. #1
    Join Date
    Sep 2008
    Location
    Portugal
    Posts
    171
    Thanks
    57
    Thanked 4 Times in 4 Posts
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Licensing Question

    HI,
    This is a "legal" question.
    Imagine i take one example from "Qt Examples":
    Qt Code:
    1. /****************************************************************************
    2. **
    3. ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
    4. ** Contact: Nokia Corporation (qt-info@nokia.com)
    5. **
    6. ** This file is part of the examples of the Qt Toolkit.
    7. **
    8. ** $QT_BEGIN_LICENSE:LGPL$
    9. ** Commercial Usage
    10. ** Licensees holding valid Qt Commercial licenses may use this file in
    11. ** accordance with the Qt Commercial License Agreement provided with the
    12. ** Software or, alternatively, in accordance with the terms contained in
    13. ** a written agreement between you and Nokia.
    14. **
    15. ** GNU Lesser General Public License Usage
    16. ** Alternatively, this file may be used under the terms of the GNU Lesser
    17. ** General Public License version 2.1 as published by the Free Software
    18. ** Foundation and appearing in the file LICENSE.LGPL included in the
    19. ** packaging of this file. Please review the following information to
    20. ** ensure the GNU Lesser General Public License version 2.1 requirements
    21. ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
    22. **
    23. ** In addition, as a special exception, Nokia gives you certain
    24. ** additional rights. These rights are described in the Nokia Qt LGPL
    25. ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
    26. ** package.
    27. **
    28. ** GNU General Public License Usage
    29. ** Alternatively, this file may be used under the terms of the GNU
    30. ** General Public License version 3.0 as published by the Free Software
    31. ** Foundation and appearing in the file LICENSE.GPL included in the
    32. ** packaging of this file. Please review the following information to
    33. ** ensure the GNU General Public License version 3.0 requirements will be
    34. ** met: http://www.gnu.org/copyleft/gpl.html.
    35. **
    36. ** If you are unsure which license is appropriate for your use, please
    37. ** contact the sales department at http://www.qtsoftware.com/contact.
    38. ** $QT_END_LICENSE$
    39. **
    40. ****************************************************************************/
    41. ...
    42. ...
    To copy to clipboard, switch view to plain text mode 

    According to the GNU General Public License version 3.0 and freedom number four i can change this code and share the changes. Right?

    The only restriction would be to make it also under the GPL Licence.

    Can someone give me an example of a compact header to use for this purpose.

    On the other hand, tell me please if i am reading this worng.

    Thanks

  2. #2
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Licensing Question

    Right, just use the above header in your modified code.

  3. #3
    Join Date
    Sep 2008
    Location
    Portugal
    Posts
    171
    Thanks
    57
    Thanked 4 Times in 4 Posts
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Licensing Question

    In the header above several options are covered.
    If i'm only interested in the GPL:
    Qt Code:
    1. #
    2. **
    3. #
    4. ** GNU General Public License Usage
    5. #
    6. ** Alternatively, this file may be used under the terms of the GNU
    7. #
    8. ** General Public License version 3.0 as published by the Free Software
    9. #
    10. ** Foundation and appearing in the file LICENSE.GPL included in the
    11. #
    12. ** packaging of this file. Please review the following information to
    13. #
    14. ** ensure the GNU General Public License version 3.0 requirements will be
    15. #
    16. ** met: http://www.gnu.org/copyleft/gpl.html.
    To copy to clipboard, switch view to plain text mode 

    Then, from the section "How to Apply These Terms to Your New Programs" in http://www.gnu.org/licenses/gpl.html on could not "goto jail" by using:
    Qt Code:
    1. <one line to give the program's name and a brief idea of what it does.>
    2. Copyright (C) <year> <name of author>
    3.  
    4. This program is free software: you can redistribute it and/or modify
    5. it under the terms of the GNU General Public License as published by
    6. the Free Software Foundation, either version 3 of the License, or
    7. (at your option) any later version.
    8.  
    9. This program is distributed in the hope that it will be useful,
    10. but WITHOUT ANY WARRANTY; without even the implied warranty of
    11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
    12. GNU General Public License for more details.
    13.  
    14. You should have received a copy of the GNU General Public License
    15. along with this program. If not, see <http://www.gnu.org/licenses/>.
    To copy to clipboard, switch view to plain text mode 

    ... when changing a single line from a Qt example?

  4. #4
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: Licensing Question

    Quote Originally Posted by graciano View Post
    ... when changing a single line from a Qt example?
    Even if you just add a space, you have to notice that that is not the original file. You have to say that you alter the code. Therefore you don't have to list every change. It's ok if you just leave the header on top, as fatjuicymole said, and add a sentence that you have altered the code and where the original can be found.

  5. #5
    Join Date
    Sep 2008
    Location
    Portugal
    Posts
    171
    Thanks
    57
    Thanked 4 Times in 4 Posts
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Licensing Question

    Ok.
    Now let's suppose someone wrote an example, good or bad, and wants to share it.
    When using the Open Source version of Qt, de default licenssing mode is, i suppose, LGPL.
    If so ... every software created with this version should be LGPL. Right?

  6. #6
    Join Date
    Sep 2008
    Location
    Portugal
    Posts
    171
    Thanks
    57
    Thanked 4 Times in 4 Posts
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Licensing Question

    Well ... looks i was wrong about the default LGPL.
    http://qt.nokia.com/products/licensing

  7. #7
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Licensing Question

    Quote Originally Posted by graciano View Post
    Ok.Now let's suppose someone wrote an example, good or bad, and wants to share it.
    When using the Open Source version of Qt, de default licenssing mode is, i suppose, LGPL.
    If so ... every software created with this version should be LGPL. Right?
    I don't see why, if they abided by the license terms of Qt when they wrote that example, they can distribute there example code under whatever license they feel like - commercial, bsd, gpl, beerware... Its only when you change someone elses code you have to keep original license and header as you can't make restrictions (So you can't say your version is only under GPLv3 if the original was GPLv3 or LGPL for example).

  8. #8
    Join Date
    Sep 2008
    Location
    Portugal
    Posts
    171
    Thanks
    57
    Thanked 4 Times in 4 Posts
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Licensing Question

    Forgetting the Qt examples for a while ...
    If you write a piece of code, using your imagination and skills, with the Qt Opesource version, what are your legal obligations?

  9. #9
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Licensing Question

    That depends on how you decide to distribute it. If you distribute as closed source (binary only), then you must comply with LGPL license and so your application must be dynamically linked.
    Else you distribute under GPL license and release the source code, which allows static linking.

    Either way, any modifications you make to Qt must be made open-source - anyone who wishes to do so must be able to build the exact same DLLs (or static libraries if you use them) as your program requires.

  10. #10
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Licensing Question

    Quote Originally Posted by graciano View Post
    Forgetting the Qt examples for a while ...
    If you write a piece of code, using your imagination and skills, with the Qt Opesource version, what are your legal obligations?
    Rule of a thumb:
    1. You want to release sources for your application -> go for any licence you want but also obey Qt's GPL or LGPL licence.
    2. You don't want to release sources for your application -> go for any licence you want but also obey Qt's LGPL licence (i.e. link Qt dynamically).
    3. You want total freedom - buy a commercial licence and distribute your application on whatever licence you see fit.

    In any case if you wish to modify Qt itself, you have to retain the original licence (or one that is compatible with it - I think) for Qt (not for you app).
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  11. #11
    Join Date
    Oct 2010
    Posts
    5
    Qt products
    Qt3 Qt4 Qt/Embedded Qt Jambi
    Platforms
    MacOS X

    Default Re: Licensing Question

    I would have thought that you were right. I guess you learn something every day. The default LGPL can be a tricky thing. Thanks for sharing your insights on this.

Similar Threads

  1. licensing question
    By tommy in forum Installation and Deployment
    Replies: 4
    Last Post: 14th April 2010, 11:54
  2. Another question to clarify licensing under LGPL.
    By Alex_123 in forum General Discussion
    Replies: 3
    Last Post: 20th October 2009, 17:31
  3. Licensing
    By randomguy in forum Newbie
    Replies: 1
    Last Post: 8th June 2009, 04:19
  4. Qt Licensing
    By alu23 in forum Qt Programming
    Replies: 3
    Last Post: 6th May 2008, 16:37
  5. Qt Licensing question
    By croland in forum Qt Programming
    Replies: 3
    Last Post: 15th July 2007, 16:23

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.