Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
GPL and PyQT5 license
#1
Im a bit confused after reading the license stuff. especially when you want to do it commercial.

Can someone explain it a bit more detailed? Especially with the "open source" thing.

Which means: if i want to commercially use PyQT5 - i need to display the whole code of it or just from PyQT5?
Especially - it reads like "only if i modify the software" - which means - when i just use PyQT5 in its regular state and make the PyQT5 Code "public" - i dont have to show my own written code?
Reply
#2
(Jun-12-2020, 04:48 PM)Kael90 Wrote: Which means: if i want to commercially use PyQT5 - i need to display the whole code of it or just from PyQT5?
The whole Python 3 code inclusive PyQt5.

There is Qt for Python which is just the a same expect the licence.
Qt for Python has LGPL v3 licence,here do not need to show code(closed-source application) when release commercially.
For use commercial they both are under Qt Commercial License which cost 550$ for one year.
import sys
import random
from PyQt5 import QtCore, QtWidgets, QtGui

class MyWidget(QtWidgets.QWidget):
    def __init__(self):
        super().__init__()
        self.hello = ["Hello World", "Hallo Welt", "Hei maailma", "Hola Mundo", "Привет мир"]
        self.button = QtWidgets.QPushButton("Click me!")
        self.text = QtWidgets.QLabel("Hello World")
        self.text.setAlignment(QtCore.Qt.AlignCenter)
        self.layout = QtWidgets.QVBoxLayout()
        self.layout.addWidget(self.text)
        self.layout.addWidget(self.button)
        self.setLayout(self.layout)
        self.button.clicked.connect(self.magic)

    def magic(self):
        self.text.setText(random.choice(self.hello))

if __name__ == "__main__":
    app = QtWidgets.QApplication([])
    widget = MyWidget()
    widget.resize(800, 600)
    widget.show()
    sys.exit(app.exec_())
To use same code over in Qt for Python(PySide2),only one change.
from PySide2 import QtCore, QtWidgets, QtGui
Reply
#3
thanks for the direct explanation! Now i got it.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  how to capture output from license() in one Python process? Skaperen 0 937 Dec-08-2022, 03:35 AM
Last Post: Skaperen

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020